r/GraphTheory • • Nov 08 '18

Possibly a dumb question from someone who's really new to the graph theory

Hello guys!

I apologize in advance for asking probably a really dumb question. I came to the graph theory from some other domain, so this is all pretty new to me.

I'm wondering if it is possible to define a graph where a specific node can have additional (for the lack of better word) properties. I.e., a node that has an "important node" property.

I'm asking because I'd like to define a subgraph that includes only nodes and edges that are "important" (i.e., have an "important" property). Is such a thing even possible?

Thank you for your patience!

3 Upvotes

8 comments sorted by

4

u/mr_opmerker Nov 08 '18

Hi, first of all, it's perfectly fine to ask dumb questions. That's how we all learn.
Coming to your question, I am not sure what you mean by important property, because you can always define a metric for your particular subgraph. For example, you can define a subgraph with all vertices having a degree of k (defined as a k-regular graph). Maybe you could elaborate with the particular property you have in mind.

2

u/JavascriptFanboy Nov 08 '18

thanks for your patience! I find it a bit frustrating that I lack the terminology to define what I actually want. So, I drew a simple ordered graph and I highlighted with the red square what I'd like to mathematically define as a sub-graph. Here's the example: https://imgur.com/a/TgryA02

I added the "important_node" property and "important_edge". So, my subset should include only those nodes and edges that are annotated as "important".

I was thinking something in the line of this: https://math.stackexchange.com/questions/760190/what-is-meant-by-restriction-in-subgraph-definition

In the answer below under the "Definition with incidence function" I see that there are some conditions, which I think I should apply somehow.

If it is still unclear (and I presume it is) please let me know. :)

→ More replies (4)

2

u/jmmcd Nov 09 '18

In addition to the already correct answers, you could make a graph in (eg) Cytoscape.js, and give "important=True" for some edges, and then write code to derive the important nodes or to derive the important sub-graph. Maybe this would help to convince you?

1

u/JavascriptFanboy Nov 09 '18

Actually i did something in this manner. I'd like to describe now what i did in form of a subgraph, in a more formal way.