Я предоставляю Cytoscape файл GML, содержащий всю необходимую информацию. Структура файла GML следующая:
Код: Выделить всё
graph [
node [
id 0
label "labelname1"
]
node [
id 1
label "labelname2"
]
node [
id 2
label "labelname3"
]
...
node [
id 2125
label "labelnamex"
]
edge [
source 0
target 0
identity 100.0
]
edge [
source 0
target 1
identity 44.4
]
edge [
source 0
target 2
identity 32.9
]
...
]
Код: Выделить всё
['attribute-circle', 'stacked-node-layout', 'attribute-grid', 'degree-circle', 'circular', 'attributes-layout', 'kamada-kawai', 'force-directed', 'cose', 'grid', 'hierarchical', 'fruchterman-rheingold', 'isom', 'force-directed-cl']
Код: Выделить всё
p4c.get_layout_property_names('...')
Код: Выделить всё
p4c.get_layout_property_names('kamada-kawai')
Код: Выделить всё
['m_averageIterationsPerNode',
'm_nodeDistanceStrengthConstant',
'm_nodeDistanceRestLengthConstant',
'm_disconnectedNodeDistanceSpringStrength',
'm_disconnectedNodeDistanceSpringRestLength',
'm_anticollisionSpringStrength',
'm_layoutPass',
'singlePartition',
'unweighted',
'randomize']
Код: Выделить всё
p4c.get_layout_property_names('force-directed')
Код: Выделить всё
['numIterations',
'defaultSpringCoefficient',
'defaultSpringLength',
'defaultNodeMass',
'isDeterministic',
'singlePartition']
Подробнее здесь: https://stackoverflow.com/questions/786 ... 4cytoscape