Example #1
0
    def initialise_min_vertex(self, graph):
        """ Store the minimum vertex value """

        self.min_vertex = np.min(graph_utils.get_vertices(graph))

        if self.verbose:
            print("Minimum vertex: {}\n".format(self.min_vertex))
Example #2
0
def compute_f4_vertices(graph, self_max=False):
    """ Compute feature f4 of Sun et al. """

    vertices = graph_utils.get_vertices(graph)
    return np.array([
        compute_f4_vertex(graph, vertex, self_max=self_max)
        for vertex in vertices
    ]).T.flatten()
Example #3
0
    def initialise_vertices(self, graph):
        """ Grab a list of the vertices from the graph """

        self.vertices = graph_utils.get_vertices(graph)