Skip to content
GalleryOpen Garphield

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 is a desktop application for analysing large networks.

  1. Choose File > Export > Graph file… and pick GEXF Files. Under Options…, keep Attributes, Colors, Position (x,y,z) and Size ticked.
  2. In Garphield, choose Open in the top strip, or drop the .gexf file 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.

Open a Gephi export

Cytoscape is a desktop application for molecular and other networks.

  1. Choose File > Export > Network to File… and pick Cytoscape.js JSON (*.cyjs).
  2. In Garphield, open the .cyjs file. A .json file with Cytoscape’s elements, such as Cytoscape.js cy.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.

Open a Cytoscape export

yEd is a desktop diagram editor with automatic layouts.

  1. Choose File > Save As… and keep the GraphML format.
  2. In Garphield, open the .graphml file.

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.

  1. Click the export button in the lower right corner of the map and choose Export to JSON.
  2. In Garphield, open the .json file.

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 is a Python library for building and analysing graphs.

  • In a notebook, pip install 'garphield[networkx]' and call gph.show(graph). See Garphield for Python.
  • For a file, call nx.write_gexf(graph, "graph.gexf"), or json.dump the result of nx.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.

Garphield’s MCP tool garphield_create reads GEXF, GraphML, Cytoscape JSON, Gephi Lite workspaces, Kumu JSON and CSV tables. See Garphield for agents.