Close
Close window
networks(deprecated)/vdegree - 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 : networks(deprecated)/vdegree
[フレーム] [フレーム]

networks

vdegree

finds vertex degrees in a graph

Calling Sequence

vdegree(vname, G)

Parameters

G

-

graph or network

vname

-

vertex

Description

Important: The networks package has been deprecated .Use the superseding package GraphTheory instead.

Given a vertex v the degree of v in G is returned.

Undirected and directed edges may both exist, but vdegree uses only the undirected edges. Use indegree() or outdegree() to determine the other kinds of degrees.

This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[vdegree](...).

Examples

Important: The networks package has been deprecated .Use the superseding package GraphTheory instead.

>

withnetworks:

>

newG:

>

addvertex1,2,3,4,G:

>

addedge1,2,1,2,1,2,1,3,4,1,G:

>

vdegree1,G

2

(1)
>

indegree1,G

1

(2)
>

outdegree1,G

2

(3)


Download Help Document

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