First time here? Check out the FAQ!

Ask Your Question
0

how to find subdivision graph of any graph ?

asked 3 years ago

Vinayak gupta gravatar image

updated 3 years ago

FrédéricC gravatar image

Strictly speaking, a subdivision of graph is graph obtained by placing a vertex between two adjacent vertices. path of length 2 is subdivision of path on length 1.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

FrédéricC gravatar image

Like that

sage: G = graphs.PetersenGraph()
sage: G.num_edges()
15
sage: G.subdivide_edges(G.edges(),1)
sage: G.num_edges()
30
Preview: (hide)
link

Comments

suppose G is the peterson graph on 15 vertices. How to find adjancy matrix of its subdivision graph.

Vinayak gupta gravatar imageVinayak gupta ( 3 years ago )

thanks for answer

Vinayak gupta gravatar imageVinayak gupta ( 3 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 3 years ago

Seen: 409 times

Last updated: Nov 29 '21