-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
inSubgraphSize and outSubgraphSize : Should node include itself in count? #191
Comments
@jayqi , since those metrics say "Subgraph Size", I would say include the all nodes in the count (including the original one). Graph size (or order) is conventionally all nodes in the graph, and since we are using that specific term "subgraph", we should follow that convention. If those metrics said "number of dependents", "number of dependencies", or "number of neighbors" I would say N -1 would be appropriate. Here are a few other references: |
@bburns632 Should we ... dare I say it ... consider renaming them again? (😂) I think not including the node in the count is more useful. That way orphan nodes will have both in and out counts of 0. What if we called them: I think you had previously not liked I don't think |
This sounds like a taxes question: do you claim yourself as a dependent? 😄 How about: Let's riff. I think we can come up with better than those two. In both of the above, their proposed value is (subgraph number of nodes - 1). |
@bburns632 and I just chatted IRL and came up with:
|
Look at
baseballstats
:We can see that these calculations include each node itself in the count. For example,
on_base_pct
is an orphaned node but it has counts of 1 in both directions.These measures are included to capture the idea of "number of dependents" and "number of dependencies". I propose to more intuitively and directly represent that idea, we subtract 1 from all of these counts.
This is a change I'm planning to make in #181.
The text was updated successfully, but these errors were encountered: