Skip to content

Conversation

@vgauthier
Copy link

This is an implementation of the Katz centrality based on the eigenvalue centrality. Tests have also be implemented.

I have added the following files :

  • katz.py
  • tests/test_katz_centrality.py

Regards
Vincent Gauthier

@ghost ghost assigned hagberg Sep 15, 2012
@hagberg
Copy link
Member

hagberg commented Jan 13, 2013

NetworkX: Test results for pull request #767 (ComplexSystemTelecomSudParis 'master' branch)
✳️ This pull request can be merged cleanly (commit 3df12ea into NetworkX master 3710816)
Platform: linux2

  • python2.6: ✳️ OK (SKIP=64) Ran 1570 tests (libraries not available: pyyaml, pydot, numpy, matplotlib, ogr, yaml, scipy, pyparsing, pygraphviz)
  • python2.7: ✳️ OK (SKIP=None) Ran 1771 tests
  • python3.2: ✳️ OK (SKIP=6) Ran 1742 tests (libraries not available: ogr, pygraphviz, pydot)
  • python3.3: ✳️ OK (SKIP=37) Ran 1636 tests (libraries not available: pyyaml, pydot, numpy, matplotlib, ogr, yaml, scipy, pyparsing, pygraphviz)

hagberg added a commit to hagberg/networkx that referenced this pull request Jan 14, 2013
Addresses networkx#767

- Add normalization option (what is the standard normalization?).
- Beta parameter default=1.0 and converts to dict or array, need to add option to specify full input of beta for each node
- Doc fixes in many places
@hagberg
Copy link
Member

hagberg commented Jan 14, 2013

PR #819 is the correct one here, please ignore the earlier (now closed) PR.

@hagberg hagberg closed this in 2967f28 Jan 26, 2013
AKASHYADAVO added a commit to AKASHYADAVO/networkx that referenced this pull request Oct 14, 2024
…orkx#767

The DocumentationHandler class is a Python object responsible for managing and merging two pieces of text: the original docstring and additional documentation.

The get_combined_doc method is the core functionality of this class. It performs the following steps:

Checks for the existence of the original docstring: The method uses the self._orig_doc attribute to access the original docstring. If this attribute is None, it means the original docstring is not available.
Conditional return:
If the original docstring is None, the method returns only the additional documentation.
If the original docstring exists, the method concatenates it with the additional documentation, ensuring a clean transition between the two using a newline and two spaces.
This approach guarantees that the combined documentation will always be comprehensive and well-formatted, regardless of whether the original docstring is present or absent.
AKASHYADAVO added a commit to AKASHYADAVO/networkx that referenced this pull request Oct 14, 2024
Create Changesdocstring can be None when calling python with -OO networkx#767
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.

2 participants