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
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
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 © 2017 JBoss by Red Hat. All rights reserved.