|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthelix.graph.model.impl.AbstractRegistry
helix.graph.model.impl.memory.MemRegistry
helix.graph.model.impl.memory.MemVertex
public class MemVertex
Field Summary |
---|
Fields inherited from interface helix.graph.model.Registry |
---|
Color, Colors, Comment, IsDirect, Label, Orientation, Rank |
Method Summary | |
---|---|
int |
degree()
get the number edges that are incident edges to this vertex |
Iterable<Edge> |
edges()
get Iterable over all edges that are incident to this vertex |
Edge |
getEdgeTo(Vertex v)
get the edge between this vertex and destination vertex v (if it exists) |
boolean |
hasEdgeTo(Vertex v)
tells if there is an edge between this vertex and destination vertex v (if it exists). |
Iterable<Vertex> |
neighbors()
get Iterable over all vertices that are adjacent to this vertex note: the following codes are equivalent :
for (Vertex w : v.neighbors())
and :
for (Edge e : v.edges()) { |
String |
toString()
a human readable version of toString() |
Methods inherited from class helix.graph.model.impl.memory.MemRegistry |
---|
get, has, keys, remove, set |
Methods inherited from class helix.graph.model.impl.AbstractRegistry |
---|
copy, registry, set, set, set, set, set |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface helix.graph.model.Registry |
---|
copy, get, has, keys, registry, remove, set, set, set, set, set, set |
Method Detail |
---|
public int degree()
Vertex
degree
in interface Vertex
public Edge getEdgeTo(Vertex v)
Vertex
getEdgeTo
in interface Vertex
v
- destination vertex
public boolean hasEdgeTo(Vertex v)
Vertex
getEdgeTo(v) != null
hasEdgeTo
in interface Vertex
v
- destination vertex
public Iterable<Edge> edges()
Vertex
edges
in interface Vertex
public Iterable<Vertex> neighbors()
Vertex
for (Vertex w : v.neighbors())
something(w);
and :
for (Edge e : v.edges()) {
Vertex w = e.getVertexTo(v);
something(w);
}
neighbors
in interface Vertex
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |