|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.ics.dillenco.simplegraph01.Node
public class Node
Field Summary | |
---|---|
byte |
permID
|
Constructor Summary | |
---|---|
Node(Graph g)
|
Method Summary | |
---|---|
char |
charName()
|
int |
getDegree()
Return the number of edges incident on this node. |
Iterable<HalfEdge> |
getHalfEdges()
Returns an iterable with an iterator that runs through all HalfEdges having this node as origin, in positive order about this node. |
Iterable<HalfEdge> |
getHalfEdges(HalfEdge startHalfEdge)
Returns an iterable with an iterator that runs through all HalfEdges having this node as origin, in positive order about this node, and with a specified starting edge. |
Iterable<HalfEdge> |
getInHalfEdges()
Returns an iterable with an iterator that runs through all HalfEdges that have this node as origin and are directed toward this node. |
Iterable<Node> |
getNeighbors()
Returns an iterable with an iterator that runs through all neighbors of this node. |
Iterable<Node> |
getNeighbors(HalfEdge startHalfEdge)
Returns an iterable with an iterator that runs through all neighbors of this node, with a specified starting edge. |
Iterable<HalfEdge> |
getOutHalfEdges()
Return an iterable with an iterator that runs through all HalfEdges that have this node as origin and are directed away from this node. |
int |
getPermID()
Return the permanent ID of this node. |
int |
getSeqID()
Return the sequential ID of this node. |
void |
link(QEdge qEdge)
Link the specified edge into the rotation system at this node. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final byte permID
Constructor Detail |
---|
Node(Graph g)
Method Detail |
---|
public String toString()
toString
in class Object
public int getSeqID()
public int getPermID()
public char charName()
public int getDegree()
public Iterable<HalfEdge> getHalfEdges()
hasNext()
and next()
methods.
If remove()
is called on the returned iterator,
an UnsupportedOperationException
will be thrown.
public Iterable<HalfEdge> getHalfEdges(HalfEdge startHalfEdge)
hasNext()
and next()
methods.
If remove()
is called on the returned iterator,
an UnsupportedOperationException
will be thrown.
startHalfEdge
- the starting HalfEdge for the iteration
public Iterable<HalfEdge> getInHalfEdges()
hasNext()
and next()
methods.
If remove()
is called on the returned iterator,
an UnsupportedOperationException
will be thrown.
public Iterable<HalfEdge> getOutHalfEdges()
hasNext()
and next()
methods.
If remove()
is called on the returned iterator,
an UnsupportedOperationException
will be thrown.
public Iterable<Node> getNeighbors()
getHalfEdges()
and looking at the resulting sequence
of neighbor nodes.
The iterator only supports the hasNext()
and next()
methods.
If remove()
is called on the returned iterator,
an UnsupportedOperationException
will be thrown.
public Iterable<Node> getNeighbors(HalfEdge startHalfEdge)
getHalfEdges()
and looking at the resulting sequence
of neighbor nodes.
The iterator only supports the hasNext()
and next()
methods.
If remove()
is called on the returned iterator,
an UnsupportedOperationException
will be thrown.
startHalfEdge
- the starting HalfEdge for the iteration
public void link(QEdge qEdge)
qEdge
- the QEdge to be linked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |