Provide a function to generate NetworkGraph
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 86
- Forks
- 43
- Avg merge
- 6h 1m
- Merged PRs (30d)
- 6
Description
The _netjson_networkgraph function is used to generate a NetJSON NetworkGraph.
https://github.com/openwisp/netdiff/blob/master/netdiff/utils.py#L127
Right now it is more like an internal function. It would be nice providing it to the module users so that they don't have to reinvent the wheel so much.
For example, in openwisp-network-topology, the json method of the Topology model is already reinventing it:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with _netjson_networkgraph in netdiff/utils.py around line 127, then compare its behavior with the duplicated logic in openwisp-network-topology's topology.py json method. Confirm the intended public entry point and output against the existing NetJSON NetworkGraph behavior; done means module users can call the exposed functionality without reimplementing it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100