GraphIO

scalation.database.graph_pm.GraphIO
See theGraphIO companion object
class GraphIO(g: Graph)

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

Value parameters

g

the digraph to write

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def write(name: String, base: String, ext: String): Unit

Write digraph g to a file in the following format: Graph ( , ,

Write digraph g to a file in the following format: Graph ( , ,

Value parameters

base

the base sub-directory for storing graphs

ext

the standard file extension for graph

name

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

Attributes

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

Write the graph to TWO 'igraph' compatible files.

Write the graph to TWO 'igraph' compatible files.

Attributes

See also

igraph.sourceforge.net

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. FIX: need to handle multiple edge types.

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.

Value parameters

eFile

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

lFile

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

Attributes