public class GraphImpl extends AbstractSet<Node> implements Graph
Constructor and Description |
---|
GraphImpl() |
GraphImpl(Collection<Node> coll) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Node obj) |
NodeData |
getNodeData(Node node) |
Set<Node> |
getRoots() |
Iterator<Node> |
iterator() |
int |
size() |
equals, hashCode, removeAll
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
public GraphImpl()
public GraphImpl(Collection<Node> coll)
public boolean add(Node obj)
add
in interface Collection<Node>
add
in interface Set<Node>
add
in class AbstractCollection<Node>
public int size()
size
in interface Collection<Node>
size
in interface Set<Node>
size
in class AbstractCollection<Node>
public NodeData getNodeData(Node node)
getNodeData
in interface Graph
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.