nl.tudelft.tbm.eeni.owl2java.model.jmodel
Class JInheritanceGraph<V,E>

java.lang.Object
  extended by org.jgrapht.graph.AbstractGraph<V,E>
      extended by org.jgrapht.graph.AbstractBaseGraph<V,E>
          extended by org.jgrapht.graph.DefaultDirectedGraph<V,E>
              extended by nl.tudelft.tbm.eeni.owl2java.model.jmodel.JInheritanceGraph<V,E>
All Implemented Interfaces:
Serializable, Cloneable, org.jgrapht.DirectedGraph<V,E>, org.jgrapht.Graph<V,E>

public class JInheritanceGraph<V,E>
extends org.jgrapht.graph.DefaultDirectedGraph<V,E>
implements org.jgrapht.DirectedGraph<V,E>

See Also:
Serialized Form

Constructor Summary
JInheritanceGraph(Class<? extends E> edgeClass)
           
 
Method Summary
 void addChildVertex(V current, V neww)
           
 void addParentVertex(V current, V neww)
           
 boolean hasAnyChildren(V vertex)
           
 boolean hasAnyParents(V vertex)
           
 boolean hasChild(V vertex, V child, boolean recursive)
           
 boolean hasDirectChild(V vertex, V child)
           
 boolean hasDirectParent(V vertex, V parent)
           
 boolean hasParent(V vertex, V parent, boolean recursive)
           
 void insertVertex(V source, V target, V neww)
           
 List<V> listDirectChildren(V vertex)
           
 List<V> listDirectParents(V vertex)
           
 
Methods inherited from class org.jgrapht.graph.AbstractBaseGraph
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeSetFactory, setEdgeWeight, vertexSet
 
Methods inherited from class org.jgrapht.graph.AbstractGraph
containsEdge, removeAllEdges, removeAllEdges, removeAllVertices, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jgrapht.DirectedGraph
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf
 
Methods inherited from interface org.jgrapht.Graph
addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, getEdgeSource, getEdgeTarget, getEdgeWeight, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet
 

Constructor Detail

JInheritanceGraph

public JInheritanceGraph(Class<? extends E> edgeClass)
Method Detail

addParentVertex

public void addParentVertex(V current,
                            V neww)

insertVertex

public void insertVertex(V source,
                         V target,
                         V neww)

addChildVertex

public void addChildVertex(V current,
                           V neww)

hasDirectParent

public boolean hasDirectParent(V vertex,
                               V parent)

hasDirectChild

public boolean hasDirectChild(V vertex,
                              V child)

listDirectParents

public List<V> listDirectParents(V vertex)

listDirectChildren

public List<V> listDirectChildren(V vertex)

hasParent

public boolean hasParent(V vertex,
                         V parent,
                         boolean recursive)

hasChild

public boolean hasChild(V vertex,
                        V child,
                        boolean recursive)

hasAnyParents

public boolean hasAnyParents(V vertex)

hasAnyChildren

public boolean hasAnyChildren(V vertex)


Copyright © 2011. All Rights Reserved.