Interface NodeWeighting<V,​E>

    • Method Detail

      • apply

        double apply​(org.jgrapht.Graph<V,​E> graph,
                     Map<V,​Integer> labels,
                     V node,
                     V neighbor)
        Compute the weight of the node in the neighborhood graph.
        Parameters:
        graph - the neighborhood graph
        labels - the map of graph nodes to their labels
        node - the target node
        neighbor - the neighboring node
        Returns:
        the weight of the node in the neighborhood