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 laying out and 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 with Gephi’s positions, attributes and link direction. Garphield colours by community and sizes by degree; Gephi’s colours and sizes arrive as the color and size fields, so choose Colour → color or Size → size to draw Gephi’s own. Preview settings, such as label fonts and curved links, are not in a GEXF file.

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, and properties from Manage Custom Properties… in the Edit menu. yEd’s labels, positions, colours and shapes are in its own graphics data, which Garphield does not read: nodes are named by their yEd IDs, such as n2::n4, and the network is laid out again. Group nodes open as ordinary nodes, and an unlinked group inside another group is left out.

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 XLSX.
  2. Save the elements sheet and the connections sheet as two CSV files.
  3. In Garphield, open the connections CSV. The construction dialog reads From and To as link ends; choose Directed if the connections have a direction.
  4. Choose Add a node table, select the elements CSV, and choose Open graph.

Elements join on Label, the node label; other columns, such as Type and Tags, become fields. The map is laid out again. Kumu’s Export to JSON file does not open in Garphield.

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 and CSV tables; for Kumu, set source and target to From and To. See Garphield for agents.