Documentation Center

  • Trial Software
  • Product Updates

Graph::printVertexInformation

Prints vertex information of a graph

Use only in the MuPAD Notebook Interface.

This functionality does not run in MATLAB.

Syntax

Graph::printVertexInformation(G)

Description

Graph::printVertexInformation prints the edges of a graph.

Graph::printVertexInformation(G) prints the edges of the graph G

Examples

Example 1

A circle graph is created and information of the vertices printed to screen:

G := Graph::createCircleGraph(3):
Graph::printVertexInformation(G)
Vertices existing in the graph:
-------------------------------
Vertex 1 has weight None
Vertex 2 has weight None
Vertex 3 has weight None

Example 2

A complete graph is created and information of the vertices printed to screen:

G := Graph::createCompleteGraph(3):
Graph::printVertexInformation(G)
Vertices existing in the graph:
-------------------------------
Vertex 1 has weight None
Vertex 2 has weight None
Vertex 3 has weight None

Parameters

G

Graph

Return Values

Text containing information about the vertices of a graph.

Was this topic helpful?