diff --git a/pymathics/graph/base.py b/pymathics/graph/base.py index b654b72..7894d1a 100644 --- a/pymathics/graph/base.py +++ b/pymathics/graph/base.py @@ -1448,6 +1448,7 @@ class VertexIndex(_NetworkXBuiltin):
gives the integer index of the vertex 'v' in the\ graph 'g'. + >> a=.; >> VertexIndex[{c <-> d, d <-> a}, a] = 3 diff --git a/pymathics/graph/components.py b/pymathics/graph/components.py index 72da1d7..2850528 100644 --- a/pymathics/graph/components.py +++ b/pymathics/graph/components.py @@ -71,6 +71,7 @@ def eval( #
'FindHamiltonianPath[$g$]' #
returns a Hamiltonian path in the given tournament graph. # +# # """ # def eval_(self, graph, expression, evaluation: Evaluation, options): # "FindHamiltonianPath[graph_, OptionsPattern[FindHamiltonPath]]" diff --git a/pymathics/graph/parametric.py b/pymathics/graph/parametric.py index 839dd8f..acb76ca 100644 --- a/pymathics/graph/parametric.py +++ b/pymathics/graph/parametric.py @@ -469,6 +469,7 @@ class KaryTree(_NetworkXBuiltin):
'KaryTree[$n$, $k$]'
Creates $k$-ary tree with $n$ vertices. + >> KaryTree[10] = -Graph- @@ -552,6 +553,7 @@ class PathGraph(_NetworkXBuiltin):
Returns a Graph with a path with vertices $v_i$ and \ edges between $v-i$ and $v_i+1$ . + >> PathGraph[{1, 2, 3}] = -Graph- """ diff --git a/pymathics/graph/structured.py b/pymathics/graph/structured.py index 13ceb48..aa6f73b 100644 --- a/pymathics/graph/structured.py +++ b/pymathics/graph/structured.py @@ -21,6 +21,7 @@ class PathGraph(_NetworkXBuiltin):
'PathGraph[{$v_1$, $v_2$, ...}]'
Returns a Graph with a path with vertices $v_i$ and edges between $v-i$ and $v_i+1$ . + >> PathGraph[{1, 2, 3}] = -Graph- """