MCPcopy Index your code
hub / github.com/clips/pattern / weight

Method weight

pattern/graph/__init__.py:129–134  ·  view source on GitHub ↗

Yields eigenvector centrality as a number between 0.0-1.0.

(self)

Source from the content-addressed store, hash-verified

127
128 @property
129 def weight(self):
130 """ Yields eigenvector centrality as a number between 0.0-1.0.
131 """
132 if self.graph and self._weight is None:
133 self.graph.eigenvector_centrality()
134 return self._weight
135
136 @property
137 def centrality(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected