public final class Topology extends Object
Constructor and Description |
---|
Topology()
Create a new, empty, topology
|
Modifier and Type | Method and Description |
---|---|
void |
connect(int edge,
int tail,
int head)
Connect the tail and head nodes, using the given edge id.
|
int |
find(int firstedge,
int tail,
int head)
Find an edge between the given tail and head nodes, starting
from the given edge.
|
int |
getHead(int edge)
Get the head node of the given edge.
|
int |
getMaxEdgeId()
Get the maximum edge id.
|
int |
getMaxNodeId()
Get the highest node id known
|
int |
getTail(int edge)
Get the tail node of the given edge.
|
void |
removeEdge(int edge)
Remove the given edge.
|
void |
reverse()
Reverse the graph
|
void |
setHead(int edge,
int head)
Set the head node of the given edge.
|
void |
setTail(int edge,
int tail)
Set the tail node.
|
public void connect(int edge, int tail, int head)
public int find(int firstedge, int tail, int head)
public int getMaxEdgeId()
public int getHead(int edge)
public int getMaxNodeId()
public int getTail(int edge)
public void removeEdge(int edge)
public void reverse()
public void setHead(int edge, int head)
public void setTail(int edge, int tail)
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.