Commit c59aa20b authored by Tiago Peixoto's avatar Tiago Peixoto

Small documentations and comment fixes

parent 31791c81
......@@ -491,7 +491,7 @@ def trust_transitivity(g, trust_map, source=None, target=None, vprop=None):
>>> trust.a = random(g.num_edges())
>>> t = gt.trust_transitivity(g, trust, source=g.vertex(0))
>>> print t.a
[ 0.04096112 0.15271582 0.07130332 0.10597708 0. 0.58940763
[ 1. 0.15271582 0.07130332 0.10597708 0. 0.58940763
0.04233924 0.03619048 0.04137002 0.05926363 0.06584407 0.06315985
0.22301815 0.02671845 0.10566551 0.08018763 0.57668762 0.08440303
0.17612948 0.37579015 0.0415804 0.19919108 0. 0.0141547
......
......@@ -853,8 +853,8 @@ class Graph(object):
# ============
def set_reversed(self, is_reversed):
"""Reverse the direction of the edges, if ``reversed`` is ``True``, or
maintain the original direction otherwise."""
"""Reverse the direction of the edges, if ``is_reversed`` is ``True``,
or maintain the original direction otherwise."""
self.__graph.SetReversed(is_reversed)
def is_reversed(self):
......
......@@ -40,10 +40,7 @@ def dl_import(import_expr):
# RTLD_GLOBAL needs to be set in dlopen() if we want typeinfo and friends to
# work properly across DSO boundaries. See http://gcc.gnu.org/faq.html#dso
# The "except" is because the dl module raises a system error on ia64 and
# x86_64 systems because "int" and addresses are different sizes.
orig_dlopen_flags = sys.getdlopenflags()
sys.setdlopenflags(RTLD_LAZY | RTLD_GLOBAL)
exec import_expr in local_dict, global_dict
......
......@@ -86,9 +86,9 @@ def adjacency(g, sparse=True, weight=None):
[ 0. 0. 0. ..., 0. 0. 0.]
[ 0. 0. 0. ..., 0. 0. 0.]
...,
[ 0. 0. 0. ..., 0. 1. 1.]
[ 0. 0. 0. ..., 0. 1. 0.]
[ 0. 0. 0. ..., 0. 0. 0.]
[ 0. 0. 0. ..., 0. 0. 0.]]
[ 0. 1. 0. ..., 0. 0. 0.]]
References
----------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment