python-igraph API reference

List of all classes, functions and methods in python-igraph

class documentation

class Vertex:

View In Hierarchy

Class representing a single vertex in a graph.

The vertex is referenced by its index, so if the underlying graph changes, the semantics of the vertex object might change as well (if the vertex indices are altered in the original graph).

The attributes of the vertex can be accessed by using the vertex as a hash:

>>> v["color"] = "red"                  #doctest: +SKIP
>>> print(v["color"])                     #doctest: +SKIP
red
Method attributes Returns a dict of attribute names and values for the vertex
Method attribute_names Returns the list of vertex attribute names
Method update_attributes Updates the attributes of the vertex from dict/iterable E and F.
Method all_edges Proxy method to Graph.incident(..., mode="all")
Method in_edges Proxy method to Graph.incident(..., mode="in")
Method out_edges Proxy method to Graph.incident(..., mode="out")
Method betweenness Proxy method to Graph.betweenness()
Method closeness Proxy method to Graph.closeness()
Method constraint Proxy method to Graph.constraint()
Method degree Proxy method to Graph.degree()
Method delete Proxy method to Graph.delete_vertices()
Method diversity Proxy method to Graph.diversity()
Method eccentricity Proxy method to Graph.eccentricity()
Method get_shortest_paths Proxy method to Graph.get_shortest_paths()
Method incident Proxy method to Graph.incident()
Method indegree Proxy method to Graph.indegree()
Method is_minimal_separator Proxy method to Graph.is_minimal_separator()
Method is_separator Proxy method to Graph.is_separator()
Method neighbors Proxy method to Graph.neighbors()
Method outdegree Proxy method to Graph.outdegree()
Method pagerank Proxy method to Graph.pagerank()
Method predecessors Proxy method to Graph.predecessors()
Method personalized_pagerank Proxy method to Graph.personalized_pagerank()
Method shortest_paths Proxy method to Graph.shortest_paths()
Method strength Proxy method to Graph.strength()
Method successors Proxy method to Graph.successors()
def attributes():

Returns a dict of attribute names and values for the vertex

def attribute_names():

Returns the list of vertex attribute names

def update_attributes(E, **F):

Updates the attributes of the vertex from dict/iterable E and F.

If E has a keys() method, it does: for k in E: self[k] = E[k]. If E lacks a keys() method, it does: for (k, v) in E: self[k] = v. In either case, this is followed by: for k in F: self[k] = F[k].

This method thus behaves similarly to the update() method of Python dictionaries.

def all_edges (INVALID):

Proxy method to Graph.incident(..., mode="all")

This method calls the incident() method of the Graph class with this vertex as the first argument and "all" as the mode argument, and returns the result.

See AlsoGraph.incident() for details.
def in_edges (INVALID):

Proxy method to Graph.incident(..., mode="in")

This method calls the incident() method of the Graph class with this vertex as the first argument and "in" as the mode argument, and returns the result.

See AlsoGraph.incident() for details.
def out_edges (INVALID):

Proxy method to Graph.incident(..., mode="out")

This method calls the incident() method of the Graph class with this vertex as the first argument and "out" as the mode argument, and returns the result.

See AlsoGraph.incident() for details.
def betweenness (INVALID):

Proxy method to Graph.betweenness()

This method calls the betweenness() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.betweenness() for details.
def closeness (INVALID):

Proxy method to Graph.closeness()

This method calls the closeness() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.closeness() for details.
def constraint (INVALID):

Proxy method to Graph.constraint()

This method calls the constraint() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.constraint() for details.
def degree (INVALID):

Proxy method to Graph.degree()

This method calls the degree() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.degree() for details.
def delete (INVALID):

Proxy method to Graph.delete_vertices()

This method calls the delete_vertices method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.delete_vertices() for details.
def diversity (INVALID):

Proxy method to Graph.diversity()

This method calls the diversity() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.diversity() for details.
def eccentricity (INVALID):

Proxy method to Graph.eccentricity()

This method calls the eccentricity() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.eccentricity() for details.
def get_shortest_paths (INVALID):

Proxy method to Graph.get_shortest_paths()

This method calls the get_shortest_paths() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.get_shortest_paths() for details.
def incident (INVALID):

Proxy method to Graph.incident()

This method calls the incident() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.incident() for details.
def indegree (INVALID):

Proxy method to Graph.indegree()

This method calls the indegree() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.indegree() for details.
def is_minimal_separator (INVALID):

Proxy method to Graph.is_minimal_separator()

This method calls the is_minimal_separator() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.is_minimal_separator() for details.
def is_separator (INVALID):

Proxy method to Graph.is_separator()

This method calls the is_separator() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.is_separator() for details.
def neighbors (INVALID):

Proxy method to Graph.neighbors()

This method calls the neighbors() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.neighbors() for details.
def outdegree (INVALID):

Proxy method to Graph.outdegree()

This method calls the outdegree() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.outdegree() for details.
def pagerank (INVALID):

Proxy method to Graph.pagerank()

This method calls the pagerank() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.pagerank() for details.
def predecessors (INVALID):

Proxy method to Graph.predecessors()

This method calls the predecessors() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.predecessors() for details.
def personalized_pagerank (INVALID):

Proxy method to Graph.personalized_pagerank()

This method calls the personalized_pagerank() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.personalized_pagerank() for details.
def shortest_paths (INVALID):

Proxy method to Graph.shortest_paths()

This method calls the shortest_paths() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.shortest_paths() for details.
def strength (INVALID):

Proxy method to Graph.strength()

This method calls the strength() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.strength() for details.
def successors (INVALID):

Proxy method to Graph.successors()

This method calls the successors() method of the Graph class with this vertex as the first argument, and returns the result.

See AlsoGraph.successors() for details.
API Documentation for igraph, generated by pydoctor 21.2.2.