mass
{Number}: The default mass value for nodes.gravitation
{Number}: The gravitational attraction (or repulsion, for
negative values) between nodes.tension
{Number}: The default spring tension for edges.restLength
{Number}: The default spring rest length for edges.drag
{Number}: The co-efficient for frictional drag forces.iterations
{Number}: The number of iterations to run the simulation.maxTime
{Number}: The maximum time to run the simulation, in milliseconds.minDistance
{Number}: The minimum effective distance over which forces are exerted.
Any lesser distances will be treated as the minimum.maxDistance
{Number}: The maximum distance over which forces are exerted.
Any greater distances will be ignored.autoStabilize
{Boolean}: A common problem with force-directed layouts is that they can be highly unstable.
If this parameter is true
and the edges are being stretched too much
between each iteration, Cytoscape Web automatically tries to stabilize
the network. The stabilization attempt is executed after the determined number
of iterations
, until each edge length seems constant or until the
maxTime
is reached. Set false
if you think the results
look worse than expected, or if the layout is taking too long to execute.weightAttr
{String}: The name of the edge attribute that contains the weights.
The default value is null
,
which means that the layout is unweighted with respect to edges.
If you want to generate an
edge-weighted layout, you just need to provide the name of the data
attribute that should be used as weight.weightNorm
{String}: The normalization method that is applied to the weight values when using a weighted layout (i.e. weightAttr != null
).
Possible values are: "linear"
, "invlinear"
and "log"
.
The default value is "linear"
.minWeight
{Number}: The minimum edge weight to
consider, if the layout is set to be weighted.
Do not specify any value if
you want the layout to get the minimum weight from the rendered edges
data (filtered-out edges are ignored).
Any edge with a weight
bellow the minimum will be laid out the same as an edge with the minimum
weight.maxWeight
{Number}: The maximum edge weight to
consider, if the layout is set to be weighted.
Do not specify any value if
you want the layout to get the maximum weight from the rendered edges
data (filtered-out edges are ignored).
Any edge with a weight
above the maximum will be laid out the same as an edge with maximum
weight.Christian
boolean
, int
, long
, float
, double
, or string.
var layout = {name: "ForceDirected",options: { weightAttr: "weight" }};
<key id="weight" for="edge" attr.name="weight" attr.type="double"/>
Next time, if you want to send your source code, please attached the files instead, because the XML code you sent is malformed.
I can only load the xml file if the "dataType" ajax option is "text", not "text/plain".
Now that I can run the code, I get the attached network (image), which looks correct to me, even if it does not look very nice, since the resulting weighted topology hides one of the edges. But that is just how it is in this case.
Thanks,
Christian