Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
5d5f626d
Commit
5d5f626d
authored
Apr 01, 2020
by
Alex Henrie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn off escape sequences in docstrings
parent
12bdfb90
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/graph_tool/inference/minimize.py
src/graph_tool/inference/minimize.py
+3
-3
src/graph_tool/inference/nested_blockmodel.py
src/graph_tool/inference/nested_blockmodel.py
+1
-1
src/graph_tool/topology/__init__.py
src/graph_tool/topology/__init__.py
+7
-7
No files found.
src/graph_tool/inference/minimize.py
View file @
5d5f626d
...
...
@@ -119,7 +119,7 @@ def minimize_blockmodel_dl(g, B_min=None, B_max=None, b_min=None, b_max=None,
mcmc_args
=
{},
anneal_args
=
{},
mcmc_equilibrate_args
=
{},
shrink_args
=
{},
mcmc_multilevel_args
=
{},
verbose
=
False
):
"""Fit the stochastic block model, by minimizing its description length using an
r
"""Fit the stochastic block model, by minimizing its description length using an
agglomerative heuristic.
Parameters
...
...
@@ -286,7 +286,7 @@ def minimize_nested_blockmodel_dl(g, B_min=None, B_max=None, b_min=None,
mcmc_args
=
{},
anneal_args
=
{},
mcmc_equilibrate_args
=
{},
shrink_args
=
{},
mcmc_multilevel_args
=
{},
verbose
=
False
):
"""Fit the nested stochastic block model, by minimizing its description length
r
"""Fit the nested stochastic block model, by minimizing its description length
using an agglomerative heuristic.
Parameters
...
...
@@ -479,4 +479,4 @@ def minimize_nested_blockmodel_dl(g, B_min=None, B_max=None, b_min=None,
**
dmask
(
hierarchy_minimize_args
,
[
"B_max"
,
"B_min"
,
"bisection_args"
,
"verbose"
]))
return
state
\ No newline at end of file
return
state
src/graph_tool/inference/nested_blockmodel.py
View file @
5d5f626d
...
...
@@ -999,7 +999,7 @@ class NestedBlockState(object):
def
hierarchy_minimize
(
state
,
B_min
=
None
,
B_max
=
None
,
b_min
=
None
,
b_max
=
None
,
frozen_levels
=
None
,
bisection_args
=
{},
epsilon
=
1e-8
,
verbose
=
False
):
"""Attempt to find a fit of the nested stochastic block model that minimizes the
r
"""Attempt to find a fit of the nested stochastic block model that minimizes the
description length.
Parameters
...
...
src/graph_tool/topology/__init__.py
View file @
5d5f626d
...
...
@@ -849,7 +849,7 @@ def max_cliques(g):
yield
c
def
min_spanning_tree
(
g
,
weights
=
None
,
root
=
None
,
tree_map
=
None
):
"""
r
"""
Return the minimum spanning tree of a given graph.
Parameters
...
...
@@ -1043,7 +1043,7 @@ def random_spanning_tree(g, weights=None, root=None, tree_map=None):
def
dominator_tree
(
g
,
root
,
dom_map
=
None
):
"""Return a vertex property map the dominator vertices for each vertex.
r
"""Return a vertex property map the dominator vertices for each vertex.
Parameters
----------
...
...
@@ -1777,7 +1777,7 @@ def shortest_distance(g, source=None, target=None, weights=None,
negative_weights
=
False
,
max_dist
=
None
,
directed
=
None
,
dense
=
False
,
dist_map
=
None
,
pred_map
=
False
,
return_reached
=
False
,
dag
=
False
):
"""Calculate the distance from a source to a target vertex, or to of all
r
"""Calculate the distance from a source to a target vertex, or to of all
vertices from a given source, or the all pairs shortest paths, if the source
is not specified.
...
...
@@ -2034,7 +2034,7 @@ def shortest_distance(g, source=None, target=None, weights=None,
def
shortest_path
(
g
,
source
,
target
,
weights
=
None
,
negative_weights
=
False
,
pred_map
=
None
,
dag
=
False
):
"""Return the shortest path from ``source`` to ``target``.
r
"""Return the shortest path from ``source`` to ``target``.
Parameters
----------
...
...
@@ -2552,7 +2552,7 @@ def all_circuits(g, unique=False):
def
pseudo_diameter
(
g
,
source
=
None
,
weights
=
None
):
"""
r
"""
Compute the pseudo-diameter of the graph.
Parameters
...
...
@@ -3180,7 +3180,7 @@ def edge_reciprocity(g):
def
tsp_tour
(
g
,
src
,
weight
=
None
):
"""Return a traveling salesman tour of the graph, which is guaranteed to be
r
"""Return a traveling salesman tour of the graph, which is guaranteed to be
twice as long as the optimal tour in the worst case.
Parameters
...
...
@@ -3277,4 +3277,4 @@ def sequential_vertex_coloring(g, order=None, color=None):
return
color
from
..
flow
import
libgraph_tool_flow
\ No newline at end of file
from
..
flow
import
libgraph_tool_flow
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment