Skip to content

inSubgraphSize and outSubgraphSize : Should node include itself in count? #191

@jayqi

Description

@jayqi

Look at baseballstats:

screen shot 2019-02-23 at 5 01 26 pm

           node inSubgraphSize outSubgraphSize
1:          OPS              1               4
2:      at_bats              4               1
3:  batting_avg              2               2
4:  on_base_pct              1               1
5: slugging_avg              2               2

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions