Close
Close window
GraphTheory/EdgeMultiplicity - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : GraphTheory/EdgeMultiplicity
[フレーム] [フレーム]

GraphTheory

EdgeMultiplicity

return edge multiplicity

IsMultigraph

test if graph is multigraph

Calling Sequence

EdgeMultiplicity(G, e)

EdgeMultiplicity(G)

IsMultigraph(G)

Parameters

G

-

graph

e

-

list or set of vertices; edge of graph

Description

EdgeMultiplicity(G, e) returns the edge multiplicity of e in G. This a nonnegative integer indicating the number of times the edge e appears in G.

EdgeMultiplicity(G) returns the edge multiplicity matrix of G. This a square matrix A where Ai,j is the number of edges from vertex i to vertex j in the graph G.

IsMultigraph(G) returns true if G is a multigraph.

Examples

>

withGraphTheory:

>

G1Graph5,Trail1,2,3,4,3

G1Graph 1: an undirected multigraph with 5 vertices and 4 edges

(1)
>

EdgeMultiplicityG1,3,4

2

(2)
>

IsMultigraphG1

true

(3)
>

G2Graph5,1,2,2,3,2,4,3,5

G2Graph 2: an undirected graph with 5 vertices and 4 edges

(4)
>

EdgeMultiplicityG2,1,2

1

(5)
>

IsMultigraphG2

false

(6)

Compatibility

The GraphTheory[EdgeMultiplicity] and GraphTheory[IsMultigraph] commands were introduced in Maple 2023.

For more information on Maple 2023 changes, see Updates in Maple 2023 .


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /