Documentation of 'org.jgrapht.graph.DirectedGraphUnion' Java class
DirectedGraphUnion
org.jgrapht.graph

Class DirectedGraphUnion<V,E>

    • Constructor Detail

      • DirectedGraphUnion

        public DirectedGraphUnion(DirectedGraph<V,E> g1,
                                  DirectedGraph<V,E> g2,
                                  WeightCombiner operator)
        Construct a new directed graph union.
        Parameters:
        g1 - the first graph
        g2 - the second graph
        operator - the weight combiner (policy for edge weight calculation)
      • DirectedGraphUnion

        public DirectedGraphUnion(DirectedGraph<V,E> g1,
                                  DirectedGraph<V,E> g2)
        Construct a new directed graph union. The union will use the WeightCombiner.SUM weight combiner.
        Parameters:
        g1 - the first graph
        g2 - the second graph
    • Method Detail

      • inDegreeOf

        public int inDegreeOf(V vertex)
        Description copied from interface: DirectedGraph
        Returns the "in degree" of the specified vertex. An in degree of a vertex in a directed graph is the number of inward directed edges from that vertex. See http://mathworld.wolfram.com/Indegree.html.
        Specified by:
        inDegreeOf in interface DirectedGraph<V,E>
        Parameters:
        vertex - vertex whose degree is to be calculated.
        Returns:
        the degree of the specified vertex.
      • incomingEdgesOf

        public java.util.Set<E> incomingEdgesOf(V vertex)
        Description copied from interface: DirectedGraph
        Returns a set of all edges incoming into the specified vertex.
        Specified by:
        incomingEdgesOf in interface DirectedGraph<V,E>
        Parameters:
        vertex - the vertex for which the list of incoming edges to be returned.
        Returns:
        a set of all edges incoming into the specified vertex.
      • outDegreeOf

        public int outDegreeOf(V vertex)
        Description copied from interface: DirectedGraph
        Returns the "out degree" of the specified vertex. An out degree of a vertex in a directed graph is the number of outward directed edges from that vertex. See http://mathworld.wolfram.com/Outdegree.html.
        Specified by:
        outDegreeOf in interface DirectedGraph<V,E>
        Parameters:
        vertex - vertex whose degree is to be calculated.
        Returns:
        the degree of the specified vertex.
      • outgoingEdgesOf

        public java.util.Set<E> outgoingEdgesOf(V vertex)
        Description copied from interface: DirectedGraph
        Returns a set of all edges outgoing from the specified vertex.
        Specified by:
        outgoingEdgesOf in interface DirectedGraph<V,E>
        Parameters:
        vertex - the vertex for which the list of outgoing edges to be returned.
        Returns:
        a set of all edges outgoing from the specified vertex.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.