rapidsai / cugraph

cuGraph - RAPIDS Graph Analytics Library
https://docs.rapids.ai/api/cugraph/stable/
Apache License 2.0
1.77k stars 304 forks source link

Update cugraph python code to use constants for various dataframe column names #2618

Open rlratzel opened 2 years ago

rlratzel commented 2 years ago

The current cugraph python code still has many places where hardcoded column names are used, sometimes inconsistently (eg. src, dst, weight, weights, wgt).

Other column names from PropertyGraph include those for edge ID, edge type, and vertex type, and may also need to be considered.

The proposal here is to create a single python module that defines the column names as constants which can be imported and used throughout the python code.

This PR addresses a similar problem, and should be considered in the final solution.

github-actions[bot] commented 2 years ago

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.