Graph Importers

Used by the GraphWidget.import_graph method.

Graph Tool Importer

Importer for graphs from the graph tool package.

Notes

  • Graph properties are ignored.
  • Nodes and edges are identified by index.
  • Node and edge properties are extracted from corresponding property maps.
  • Default values for unset properties are used, due to the way graph tool properties work.

igraph Importer

Importer for graphs from the igraph package.

Notes

  • Nodes and edges are identified by index attribute.
  • Node and edge properties are provided through attributes method.
  • Edges are determined by source and target attribute.

Networkx Importer

Importer for graphs from the networkx package.

Notes

  • Graph attributes are ignored.
  • Node identifiers are saved under property key label (or yf_label if key label already exists).
  • Node identifiers have to be unique.
  • Subgraphs (graph as node, see here) are not supported.

PyGraphviz Importer

Importer for graphs from the pygraphviz package.

Notes

  • Graph attributes are ignored.
  • Node names are saved under property key label (or yf_label if key label already exists).
  • Node names have to be unique.
  • Unspecified default node/edge attributes are empty (and shown as null in data viewer).
  • Subgraphs are dissolved.

Neo4j Importer

Importer for graphs from Neo4j.

Notes

  • All properties are loaded into the data item
  • Neo4j node labels are combined with ':' and added as 'label' property on the item
  • Relationship types are added as 'label' property on the item