Package picard.util

Class GraphUtils.Graph<Node extends Comparable<Node>>

    • Constructor Detail

      • Graph

        public Graph()
    • Method Detail

      • getNodes

        public List<Node> getNodes()
      • cluster

        public Map<Node,​Integer> cluster()
        returns the cluster map of connected components
        Returns:
        Nodes that point to the same integer are in the same cluster.
      • addEdge

        public void addEdge​(Node left,
                            Node right)