Newest changes:
- fixed several minor bugs
- added laplacian_matrix command
Code : Tout sélectionner
# laplacian_matrix
0 G,[normal]
2 Returns the Laplacian matrix L=D-A of an undirected graph G where D resp. A is the degree matrix resp. the adjacency matrix of G.
-1 adjacency_matrix
-2 degree_sequence
-3 number_of_spanning_trees
laplacian_matrix(graph(trail(1,2,3,4,5,2)))
laplacian_matrix(graph(trail(1,2,3,4,5,2)),normal)
- implemented the delete-contract algorithm for computing Tutte polynomials, it uses nauty but also works without it, the related commands are tutte_polynomial, flow_polynomial, chromatic_polynomial and reliability_polynomial
Code : Tout sélectionner
# tutte_polynomial
0 G,[x,y]
2 Returns the Tutte polynomial [or its value at point (x,y)] of an undirected graph G. If G is weighted, all weights must be positive integers and are interpreted as edge multiplicities.
-1 chromatic_polynomial
-2 flow_polynomial
-3 reliability_polynomial
-4 delete_edge
-5 contract_edge
tutte_polynomial(graph("tetrahedron"))
tutte_polynomial(graph("tetrahedron"),1,1)
Code : Tout sélectionner
# flow_polynomial
0 G,[x]
2 Returns the flow polynomial [or its value at point x] of an undirected unweighted graph G.
-1 chromatic_polynomial
-2 reliability_polynomial
-3 tutte_polynomial
flow_polynomial(graph("tetrahedron"))
flow_polynomial(graph("tetrahedron"),5)
Code : Tout sélectionner
# chromatic_polynomial
0 G,[t]
2 Returns the chromatic polynomial [or its value at point t] of an undirected unweighted graph G.
-1 flow_polynomial
-2 reliability_polynomial
-3 tutte_polynomial
chromatic_polynomial(graph("petersen"))
chromatic_polynomial(graph("petersen"),3)
Code : Tout sélectionner
# reliability_polynomial
0 G,[p]
2 Returns the reliability polynomial [or its value at point p] of an undirected graph G. If G is weighted, all weights must be positive integers and are interpreted as edge multiplicities.
-1 chromatic_polynomial
-2 flow_polynomial
-3 tutte_polynomial
reliability_polynomial(graph("petersen"))
reliability_polynomial(graph("petersen"),0.5)
- the manual is corrected and updated, all the new commands are documented
Edit: corrected short help for chromatic_polynomial