public abstract class KahinaGraph extends KahinaObject
needsUpdate
Constructor and Description |
---|
KahinaGraph() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addDirectedEdge(int v1,
int v2) |
abstract void |
addDirectedEdge(int v1,
int v2,
int status) |
abstract void |
addDirectedEdge(int v1,
int v2,
java.lang.String label) |
abstract void |
addDirectedEdge(int v1,
int v2,
java.lang.String label,
int status) |
abstract void |
addUndirectedEdge(int v1,
int v2) |
abstract void |
addUndirectedEdge(int v1,
int v2,
int status) |
abstract void |
addUndirectedEdge(int v1,
int v2,
java.lang.String label) |
abstract void |
addUndirectedEdge(int v1,
int v2,
java.lang.String label,
int status) |
abstract void |
addVertex(int v) |
abstract void |
addVertex(int v,
int status) |
abstract void |
addVertex(int v,
java.lang.String label) |
abstract void |
addVertex(int v,
java.lang.String label,
int status) |
static KahinaGraph |
createEmptyGraph()
Creates an empty graph, an AdjacListsGraph by default.
|
void |
exportTGF(java.lang.String fileName) |
abstract java.lang.String |
getEdgeLabel(int v1,
int v2) |
abstract int |
getEdgeStatus(int v1,
int v2) |
abstract java.util.List<java.lang.Integer> |
getNeighbors(int v) |
abstract java.lang.String |
getVertexLabel(int v) |
abstract int |
getVertexStatus(int v) |
abstract java.util.Set<java.lang.Integer> |
getVertices() |
static KahinaGraph |
importTGF(java.lang.String fileName)
Imports a graph from a file in Trivial Graph Format (TGF).
|
abstract void |
setEdgeLabel(int v1,
int v2,
java.lang.String label) |
abstract void |
setEdgeStatus(int v1,
int v2,
int status) |
abstract void |
setVertexLabel(int v,
java.lang.String label) |
abstract void |
setVertexStatus(int v,
int status) |
needsUpdate, requireUpdate
public static KahinaGraph createEmptyGraph()
public abstract java.util.Set<java.lang.Integer> getVertices()
public abstract void addVertex(int v)
public abstract void addVertex(int v, int status)
public abstract void addVertex(int v, java.lang.String label)
public abstract void addVertex(int v, java.lang.String label, int status)
public abstract java.util.List<java.lang.Integer> getNeighbors(int v)
public abstract void addDirectedEdge(int v1, int v2)
public abstract void addDirectedEdge(int v1, int v2, int status)
public abstract void addDirectedEdge(int v1, int v2, java.lang.String label)
public abstract void addDirectedEdge(int v1, int v2, java.lang.String label, int status)
public abstract void addUndirectedEdge(int v1, int v2)
public abstract void addUndirectedEdge(int v1, int v2, int status)
public abstract void addUndirectedEdge(int v1, int v2, java.lang.String label)
public abstract void addUndirectedEdge(int v1, int v2, java.lang.String label, int status)
public abstract void setVertexLabel(int v, java.lang.String label)
public abstract java.lang.String getVertexLabel(int v)
public abstract void setEdgeLabel(int v1, int v2, java.lang.String label)
public abstract java.lang.String getEdgeLabel(int v1, int v2)
public abstract void setVertexStatus(int v, int status)
public abstract int getVertexStatus(int v)
public abstract void setEdgeStatus(int v1, int v2, int status)
public abstract int getEdgeStatus(int v1, int v2)
public static KahinaGraph importTGF(java.lang.String fileName)
fileName
- path to the input file in TGF formatpublic void exportTGF(java.lang.String fileName) throws java.io.IOException
java.io.IOException