Documentation of 'edu.uci.ics.jung.graph.AbstractTypedGraph' Java class
AbstractTypedGraph
edu.uci.ics.jung.graph

Class AbstractTypedGraph<V,E>

    • Constructor Detail

      • AbstractTypedGraph

        public AbstractTypedGraph(EdgeType edge_type)
        Creates an instance with the specified edge type.
        Parameters:
        edge_type - the type of edges that this graph accepts
    • Method Detail

      • getDefaultEdgeType

        public EdgeType getDefaultEdgeType()
        Returns this graph's edge type.
        Returns:
        the default edge type for this graph
      • getEdgeType

        public EdgeType getEdgeType(E e)
        Returns this graph's edge type, or null if e is not in this graph.
        Parameters:
        e - the edge whose type is to be returned
        Returns:
        the EdgeType of edge, or null if edge has no defined type
      • getEdges

        public java.util.Collection<E> getEdges(EdgeType edge_type)
        Returns the edge set for this graph if edgeType matches the edge type for this graph, and an empty set otherwise.
        Parameters:
        edge_type - the type of edges to be returned
        Returns:
        the collection of edges which are of type edge_type, or null if the graph does not accept edges of this type
        See Also:
        EdgeType
      • getEdgeCount

        public int getEdgeCount(EdgeType edge_type)
        Returns the edge count for this graph if edge_type matches the edge type for this graph, and 0 otherwise.
        Parameters:
        edge_type - the type of edge for which the count is to be returned
        Returns:
        the number of edges of type edge_type in this graph

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.