model for the graph partitioning problem
More...
Go to the source code of this file.
|
| V |
|
| E |
|
| model = gpp(V,E) |
|
| x = model.data |
|
| status = model.getStatus() |
|
| s |
|
| z |
|
model for the graph partitioning problem
Definition in file gpp.py.
gpp -- model for the graph partitioning problem
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
Returns a model, ready to be solved.
Definition at line 9 of file gpp.py.
gpp_qo -- quadratic optimization model for the graph partitioning problem
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
Returns a model, ready to be solved.
Definition at line 37 of file gpp.py.
def gpp.gpp_qo_ps |
( |
|
V, |
|
|
|
E |
|
) |
| |
gpp_qo_ps -- quadratic optimization, positive semidefinite model for the graph partitioning problem
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
Returns a model, ready to be solved.
Definition at line 58 of file gpp.py.
def gpp.gpp_soco |
( |
|
V, |
|
|
|
E |
|
) |
| |
gpp -- model for the graph partitioning problem in soco
Parameters:
- V: set/list of nodes in the graph
- E: set/list of edges in the graph
Returns a model, ready to be solved.
Definition at line 79 of file gpp.py.
def gpp.make_data |
( |
|
n, |
|
|
|
prob |
|
) |
| |
make_data: prepare data for a random graph
Parameters:
- n: number of vertices
- prob: probability of existence of an edge, for each pair of vertices
Returns a tuple with a list of vertices and a list edges.
Definition at line 120 of file gpp.py.