Packages

class GraphIO extends AnyRef

The GraphIO class is used to write graphs to a file.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. GraphIO
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new GraphIO(g: Graph)

    g

    the graph to write

Value Members

  1. def write(name: String = g.name, base: String = BASE_DIR, ext: String = EXT): Unit

    Write graph 'g' to a file in the following format:

    Write graph 'g' to a file in the following format:

    Graph (<name>, <inverse> <nVertices> <vertexId>

    name

    the file-name containing the graph's vertex, edge and label information

    base

    the base sub-directory for storing graphs

    ext

    the standard file extension for graph

  2. def write2IgraphFiles(prefix: String): (String, String)

    Write the graph to TWO 'igraph' compatible files.

    Write the graph to TWO 'igraph' compatible files.

    See also

    igraph.sourceforge.net

  3. def write2Neo4JFiles(lFile: String, eFile: String): Unit

    Write the graph to TWO 'Neo4J' compatible files: 'lFile' and 'eFile' so that they may be fed into 'Neo4j' with one of its utilities.

    Write the graph to TWO 'Neo4J' compatible files: 'lFile' and 'eFile' so that they may be fed into 'Neo4j' with one of its utilities. FIX: need to handle multiple edge types.

    lFile

    the file containing the graph labels (line: vertex-id TAB label)

    eFile

    the file the edges (line: start-id TAB end-id TAB type)