|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfr.umlv.gramofone.graphs.Edges
public class Edges
Manage all edges of a graph
| Constructor Summary | |
|---|---|
Edges()
|
|
| Method Summary | |
|---|---|
void |
add(Edge e)
add an edge add (u,v) and (v,u) |
void |
clear()
delete all existing edges |
boolean |
contains(Edge e)
return true if the edge e exists in the grpah |
java.util.HashSet<Edge> |
getEdges()
Get all edges of a graph |
java.util.Set<java.lang.Integer> |
neighbors(int u)
get all the neighbors of a node u |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Edges()
| Method Detail |
|---|
public void add(Edge e)
e - public void clear()
public boolean contains(Edge e)
e -
public java.util.Set<java.lang.Integer> neighbors(int u)
u -
public java.util.HashSet<Edge> getEdges()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||