The GraphIO
object is the companion object to the GraphIO
class and is used for reading graphs from files or graph databases.
Attributes
Members list
Value members
Concrete methods
Read a digraph from a file based on the format used by 'print' and 'write': Graph (
Read a digraph from a file based on the format used by 'print' and 'write': 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
- sep
-
the character separating the values (e.g., ',', ' ', '\t')
Attributes
Make a set of child vertices '(v_0, v_1, ...)' from a string array.
Make a set of child vertices '(v_0, v_1, ...)' from a string array.
Value parameters
- strArr
-
the string array
Attributes
Make an edge tuple '(u, v)' from a string array.
Make an edge tuple '(u, v)' from a string array.
Value parameters
- strArr
-
the string array
Attributes
Read a graph from TWO files: 'lFile' is a file with one label per line, where each line represents the vertex with id
Read a graph from TWO files: 'lFile' is a file with one label per line, where each line represents the vertex with id
Value parameters
- eFile
-
the file the edges (to create adjacency sets)
- inverse
-
whether to store inverse adjacency sets (parents)
- lFile
-
the file containing the graph labels
Attributes
Read a graph from TWO specially formatted Pajek files.
Read a graph from TWO specially formatted Pajek files.
Value parameters
- eFile
-
the file the edges (to create adjacency sets)
- inverse
-
whether to store inverse adjacency sets (parents)
- lFile
-
the file containing the graph labels