Bring a graph from Gephi, Cytoscape, yEd, Kumu or NetworkX
A network from another tool opens in Garphield from a file that tool already writes. In the browser it can be shared as a link that needs no install, embedded in a page, graded for readability, or restyled by an AI assistant.
Gephi and Gephi Lite
Section titled “Gephi and Gephi Lite”Gephi is a desktop application for analysing large networks.
- Choose File > Export > Graph file… and pick GEXF Files. Under Options…, keep Attributes, Colors, Position (x,y,z) and Size ticked.
- In Garphield, choose Open in the top strip, or drop the
.gexffile on the window.
The drawing opens as Gephi drew it, with positions, colours, sizes, attributes and link direction; bind another Colour or Size source to restyle the graph. Preview settings, such as label fonts, stay in Gephi.
Gephi Lite exports GEXF the same way, and its saved workspace (.json) opens with the colours, sizes and labels its appearance uses.
Cytoscape
Section titled “Cytoscape”Cytoscape is a desktop application for molecular and other networks.
- Choose File > Export > Network to File… and pick Cytoscape.js JSON (*.cyjs).
- In Garphield, open the
.cyjsfile. A.jsonfile with Cytoscape’selements, such as Cytoscape.jscy.json()output, opens the same way.
Node and edge columns become fields, name becomes the label, and positions keep Cytoscape’s layout. Links are directed; repeated links are kept. Styles export separately and are not read, so style colours and sizes do not come across, but the columns a style maps do. A compound node opens as an ordinary node, and its children keep a parent field.
yEd is a desktop diagram editor with automatic layouts.
- Choose File > Save As… and keep the GraphML format.
- In Garphield, open the
.graphmlfile.
Garphield reads nodes, links, direction, labels, positions and the properties from Edit > Manage Custom Properties…. Fill colours, sizes and shapes arrive as the color, size and shape fields. A node inside a group gets the group’s name in a group field, and group 2 inside a nested group, so Group by → group draws yEd’s groups as rings.
Kumu is a web app for mapping systems and relationships.
- Click the export button in the lower right corner of the map and choose Export to JSON.
- In Garphield, open the
.jsonfile.
Elements become nodes and connections become links, with their fields, such as Element Type, Tags and Description. Connections keep their direction; a mutual connection becomes a link each way. Positions come from the project’s default map. Perspectives, Kumu’s styling, are not read, and neither is anything removed from every map.
NetworkX
Section titled “NetworkX”NetworkX is a Python library for building and analysing graphs.
- In a notebook,
pip install 'garphield[networkx]'and callgph.show(graph). See Garphield for Python. - For a file, call
nx.write_gexf(graph, "graph.gexf"), orjson.dumpthe result ofnx.node_link_data(graph), and open the file.
Both files include attributes and direction. Nodes with a viz attribute keep its position, colour and size in GEXF; otherwise Garphield lays the graph out.
Through an agent
Section titled “Through an agent”Garphield’s MCP tool garphield_create reads GEXF, GraphML, Cytoscape JSON, Gephi Lite workspaces, Kumu JSON and CSV tables. See Garphield for agents.