ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 29 Nov 2021 12:16:19 +0100how to find subdivision graph of any graph ?https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/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.Mon, 29 Nov 2021 08:47:00 +0100https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/Answer by FrédéricC for <p>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.</p>
https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/?answer=60001#post-id-60001Like that
sage: G = graphs.PetersenGraph()
sage: G.num_edges()
15
sage: G.subdivide_edges(G.edges(),1)
sage: G.num_edges()
30
Mon, 29 Nov 2021 09:35:32 +0100https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/?answer=60001#post-id-60001Comment by Vinayak gupta for <p>Like that</p>
<pre><code>sage: G = graphs.PetersenGraph()
sage: G.num_edges()
15
sage: G.subdivide_edges(G.edges(),1)
sage: G.num_edges()
30
</code></pre>
https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/?comment=60003#post-id-60003thanks for answerMon, 29 Nov 2021 12:16:19 +0100https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/?comment=60003#post-id-60003Comment by Vinayak gupta for <p>Like that</p>
<pre><code>sage: G = graphs.PetersenGraph()
sage: G.num_edges()
15
sage: G.subdivide_edges(G.edges(),1)
sage: G.num_edges()
30
</code></pre>
https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/?comment=60002#post-id-60002suppose G is the peterson graph on 15 vertices. How to find adjancy matrix of its subdivision graph.Mon, 29 Nov 2021 12:15:51 +0100https://ask.sagemath.org/question/60000/how-to-find-subdivision-graph-of-any-graph/?comment=60002#post-id-60002