09.02.2015 Views

Sage Reference Manual: Graph Theory - Mirrors

Sage Reference Manual: Graph Theory - Mirrors

Sage Reference Manual: Graph Theory - Mirrors

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Graph</strong> <strong>Theory</strong>, Release 6.1.1<br />

cartesian_product()<br />

tensor_product()<br />

lexicographic_product()<br />

strong_product()<br />

disjunctive_product()<br />

Paths and cycles:<br />

Returns the Cartesian product of self and other.<br />

Returns the tensor product, also called the categorical product, of self and other.<br />

Returns the lexicographic product of self and other.<br />

Returns the strong product of self and other.<br />

Returns the disjunctive product of self and other.<br />

eulerian_orientation() Returns a Di<strong>Graph</strong> which is an Eulerian orientation of the current graph.<br />

eulerian_circuit()Return a list of edges forming an eulerian circuit if one exists.<br />

cycle_basis() Returns a list of cycles which form a basis of the cycle space of self.<br />

interior_paths() Returns an exhaustive list of paths (also lists) through only interior vertices from vertex<br />

start to vertex end in the (di)graph.<br />

all_paths() Returns a list of all paths (also lists) between a pair of vertices in the (di)graph.<br />

triangles_count() Returns the number of triangles in the (di)graph.<br />

Linear algebra:<br />

spectrum()<br />

eigenvectors()<br />

eigenspaces()<br />

Some metrics:<br />

Returns a list of the eigenvalues of the adjacency matrix.<br />

Returns the right eigenvectors of the adjacency matrix of the graph.<br />

Returns the right eigenspaces of the adjacency matrix of the graph.<br />

cluster_triangles() Returns the number of triangles for nbunch of vertices as a dictionary keyed by<br />

vertex.<br />

clustering_average() Returns the average clustering coefficient.<br />

clustering_coeff() Returns the clustering coefficient for each vertex in nbunch<br />

cluster_transitivity() Returns the transitivity (fraction of transitive triangles) of the graph.<br />

szeged_index()<br />

Returns the Szeged index of the graph.<br />

Automorphism group:<br />

coarsest_equitable_refinement()<br />

Returns the coarsest partition which is finer than the input partition, and equitable<br />

with respect to self.<br />

automorphism_group() Returns the largest subgroup of the automorphism group of the (di)graph whose<br />

orbit partition is finer than the partition given.<br />

is_vertex_transitive() Returns whether the automorphism group of self is transitive within the partition<br />

provided<br />

is_isomorphic() Tests for isomorphism between self and other.<br />

canonical_label() Returns the unique graph on {0, 1, ..., n − 1} ( n = self.order() ) which 1)<br />

is isomorphic to self 2) is invariant in the isomorphism class.<br />

<strong>Graph</strong> properties:<br />

is_eulerian()<br />

is_planar()<br />

is_circular_planar()<br />

is_regular()<br />

is_chordal()<br />

is_circulant()<br />

is_interval()<br />

is_gallai_tree()<br />

is_clique()<br />

is_independent_set()<br />

is_transitively_reduced()<br />

is_equitable()<br />

Traversals:<br />

Return true if the graph has a (closed) tour that visits each edge exactly once.<br />

Tests whether the graph is planar.<br />

Tests whether the graph is circular planar (outerplanar)<br />

Return True if this graph is (k-)regular.<br />

Tests whether the given graph is chordal.<br />

Tests whether the graph is a circulant graph.<br />

Check whether self is an interval graph<br />

Returns whether the current graph is a Gallai tree.<br />

Tests whether a set of vertices is a clique<br />

Tests whether a set of vertices is an independent set<br />

Tests whether the digraph is transitively reduced.<br />

Checks whether the given partition is equitable with respect to self.<br />

1.1. Generic graphs 3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!