org.drools.beliefs.graph.impl
Class GraphImpl<T>
java.lang.Object
org.drools.beliefs.graph.impl.GraphImpl<T>
- All Implemented Interfaces:
- Iterable<GraphNode<T>>, Graph<T>
- Direct Known Subclasses:
- BayesNetwork
public class GraphImpl<T>
- extends Object
- implements Graph<T>, Iterable<GraphNode<T>>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
idCounter
protected int idCounter
GraphImpl
public GraphImpl(GraphStore<T> graphStore)
addNode
public GraphNode<T> addNode()
- Specified by:
addNode in interface Graph<T>
removeNode
public GraphNode<T> removeNode(int id)
- Specified by:
removeNode in interface Graph<T>
getNode
public GraphNode<T> getNode(int id)
- Specified by:
getNode in interface Graph<T>
size
public int size()
- Specified by:
size in interface Graph<T>
iterator
public Iterator<GraphNode<T>> iterator()
- Specified by:
iterator in interface Iterable<GraphNode<T>>
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.