#find all subgraphs
27 messages · Page 1 of 1 (latest)
So basically I have this graph right what are all the subgraphs? This is what I have so far:
Is this even right? 😖
<@&286206848099549185>
@dreamy sigil
I feel like there's too many cases to consider
Or is what I'm doing wrong?
HELPPPPPPPPPPPPPP
Kindly.
<@&286206848099549185>
I have been pinged?
What is the definition of a subgraph that you are using?
I presume you are using the first definition here.
https://mathworld.wolfram.com/Subgraph.html
A subgraph G^' of a graph G is a graph G^' whose vertex set and edge set are subsets of those of G. If G^' is a subgraph of G, then G is said to be a supergraph of G^' (Harary 1994, p. 11). A vertex-induced subgraph, often simply called "an induced subgraph" (e.g., Harary 1994, p. 11) of G induced by the vertex set V (where V is a subset of the ...
All vertices of graph are in original graph and each edge in graph has same end vertices in original graph
idk lol
yeah this looks right
So, you have 6 vertices. A subgraph will have a subset of these vertices. So 2^6=64 possible subsets of vertices.
that makes me wonder if the question is asking something different or if it actually wants me to list all 64
it just says find all the subgraphs of the graph
There is going to be more than 64. 5 edges so at most 2^5=32 possible subsets of edges for each subset of vertices. So up to 2048 subgraphs. I'm writing code to compute the true amount.
One possibility is subgraps up to isomorphism. So only include a graph if it is essentially unique.
This page has 21 sub graphs, but only 4 up to isomorphism.
Wrote some code and found out there are 256 subgraphs.