Skip to content

Building networks in NetworkX with online APIs - #2

Closed
drewconway wants to merge 10 commits into
networkx:masterfrom
drewconway:master
Closed

drewconway wants to merge 10 commits into
networkx:masterfrom
drewconway:master

Conversation

@drewconway

Copy link
Copy Markdown

Per our discussion at SciPy, I have added an example for generating networks from Google's SocialGraph API.

@hagberg

hagberg commented Jul 22, 2012

Copy link
Copy Markdown
Member

We never got around to including this. And the d3 interface has changed too.
The social_graph.py part would be go to add as an example - does it still work correctly?

@sk2

sk2 commented Aug 3, 2012

Copy link
Copy Markdown

I'm using d3 with the standard NetworkX JSON output and it all works quite well.

@drewconway

Copy link
Copy Markdown
Author

Google deprecate the SocialGraph API, so the social_graph.py will no longer work properly. It would still be quite useful to have some built-in functionality to build graphs from online social networks, but since many (all) of the platforms have moved to an OAuth model data authentication I am not sure if it would be worth the dependency burden.

@hagberg hagberg closed this Aug 3, 2012
hagberg added a commit that referenced this pull request Jan 26, 2013
add the following test test_beta_as_scalar, test_beta_as_dict,
hagberg pushed a commit that referenced this pull request Sep 12, 2013
hagberg pushed a commit that referenced this pull request Nov 3, 2013
ysitu referenced this pull request in ysitu/networkx Apr 25, 2014
Implement cutoff and fix value_only use in minimum_cut
ysitu added a commit that referenced this pull request Jun 1, 2014
ysitu added a commit that referenced this pull request Jun 6, 2014
Connectivity package release notes for NetworkX 1.9
chebee7i pushed a commit that referenced this pull request Feb 28, 2015
Add harmonic_centrality to release notes.
chebee7i pushed a commit to chebee7i/networkx that referenced this pull request Apr 29, 2015
is_negatively_weighted, docstrings, empty graph test
chebee7i pushed a commit that referenced this pull request Jun 22, 2015
Move mst.py and docstring updates.
dschult pushed a commit that referenced this pull request May 16, 2016
erwanlemerrer added a commit to erwanlemerrer/networkx that referenced this pull request Jul 19, 2019
dschult pushed a commit that referenced this pull request Jul 20, 2019
* Adding non-randomness measures for graphs

* Adding doc files

* Bux fix in .rst content

* Travis bugs fixing attempt

* Travis bug: numpy import problem

* Travis bug: numpy import problem in test_non_randomness

* following Dan s comments

* following Dan s comments #2

* following Dan s comments #3
tjelinek added a commit to tjelinek/networkx that referenced this pull request Aug 9, 2020
jarrodmillman pushed a commit that referenced this pull request Dec 15, 2020
* Simple maxcut heuristics (#2)

* Simple randomized maxcut heuristic

* Remove approximation guarantee test

Test is not expected to pass all the time due to randomness.

* Preserve random state for cut heuristic

* Add one exchange max cut heuristic

* Fixes && Refactoring && Default deterministic output

* maxcut/simple.py: Add docstring and make initial_cut optional.

* maxcut/simple.py: Add shuffle again. Make initial set a set.

Co-authored-by: Jonas Charfreitag <[email protected]>

* Fix parse_edgelist behavior with multiple attributes (#4125)

* Fix parse_edgelist behavior with multiple attributes

* fixed test case

Co-authored-by: chris <chris@orchid>

* CI: temporary fix for CI latex installation issues (#4131)

* Updated draw_networkx to accept numpy array for edgelist (#4132)

* updated draw_networkx + added test

* added newline

* skip test if numpy is not installed

* change skip if numpy is not available

* switch elif to if

* Add tree isomorphism (#4067)

* add code for tree isomorphism, with tests

* fix typo in comment

* one more typo in comments

* fix some PEP8 formatting, that flake8 didn't care about

* rename files as tree_isomorphism

* run code through black formatter

* incorporate feedback from dschult in PR4067

* fix missing import for not_implemented_for decorator

* swap edge order randomly in testing routine positive_single_tree

* run black on test_tree_isomorphism.py

* spacing tweak to allow CI test of docs

Co-authored-by: Dan Schult <[email protected]>

* maxcut/simple.py: Updated documentation and some names.

* maxcut/simple.py (Tests): Add _is_valid_cut function and make use of it.

* Move maxcut code to approximation dir.

* maxcut.py: Add not implemented for decorator to maxcut functions.

* test_maxcut.py: Testcase for global optimality.

* maxcut: Fix line width to 88.

* Maxcut: Add __all__ to maxcut.py.

* Maxcut: Use networkx style seed for functions.

* Maxcut: Move to fully soft dependence on numpy.

* Maxcut: Bugfix. Replace choice with sample in test.

* Remove unnecessary set constructor

* Add Max Cut reference in docs

* Fix seed in Max Cut tests

* Add negative weight test for Max Cut

* Improve docstrings

* Fix formatting

* Fix formatting for test file

* Fix formatting for test file

* Docstring formatting touchups.

* Call graph generator from top-level namespace.

* Update networkx/algorithms/approximation/maxcut.py

Docstring type error.

Co-authored-by: Ross Barnowski <[email protected]>

* Update networkx/algorithms/approximation/maxcut.py

Use compact set construction in randomized_partitioning.

Co-authored-by: Ross Barnowski <[email protected]>

* Update networkx/algorithms/approximation/maxcut.py

Use compact set construction in _swap_node_partition.

Co-authored-by: Ross Barnowski <[email protected]>

* Update networkx/algorithms/approximation/tests/test_maxcut.py

Remove comments with no additional information.

Co-authored-by: Ross Barnowski <[email protected]>

* Change cut_value to scalar.

* test_maxcut: Better naming for import.

* maxcut.py: Remove one whitespace.

* Update networkx/algorithms/approximation/tests/test_maxcut.py

Co-authored-by: Ross Barnowski <[email protected]>

* Add comment to why shuffling nodes in one exchange has some benefit.

Co-authored-by: Mohammed Ghannam <[email protected]>
Co-authored-by: Christoph Martin <[email protected]>
Co-authored-by: chris <chris@orchid>
Co-authored-by: Ross Barnowski <[email protected]>
Co-authored-by: Tanguy Fardet <[email protected]>
Co-authored-by: Craig Schmidt <[email protected]>
Co-authored-by: Dan Schult <[email protected]>
Co-authored-by: Mohammed Ghannam <[email protected]>
joyshmitz referenced this pull request in joyshmitz/networkx Apr 2, 2026
- Reads role_assignments.yaml (auto-discovered next to questionnaire or via --role-assignments)
- Warns when owner_role not assigned to any person
- Errors when S4 field owner and all reviewers resolve to the same person
- sample_01 now shows 4 unassigned role warnings (process_engineer, iiot_engineer)
- 9 new tests covering mappings, S4 conflicts, partial overlap, full coverage

129 tests passing. Wave 2 items #2-#4 complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants