This code:
Clear[ighamiltMol,timeList,hamiltMol,];
timeList={Abs[0.333333 E^(-I t) + 0.333333 E^(I t) + 0.166667 E^(-2 I t) +
0.166667 E^(2 I t)]^2,
Abs[0.\[VeryThinSpace]+ 0.166667 E^(-I t) - 0.166667 E^(I t) +
0.166667 E^(-2 I t) - 0.166667 E^(2 I t)]^2,
Abs[-0.166667 E^(-I t) - 0.166667 E^(I t) + 0.166667 E^(-2 I t) +
0.166667 E^(2 I t)]^2,
Abs[-0.333333 E^(-I t) + 0.333333 E^(I t) + 0.166667 E^(-2 I t) -
0.166667 E^(2 I t)]^2,
Abs[0.\[VeryThinSpace]- 0.166667 E^(-I t) - 0.166667 E^(I t) +
0.166667 E^(-2 I t) + 0.166667 E^(2 I t)]^2,
Abs[0.166667 E^(-I t) - 0.166667 E^(I t) + 0.166667 E^(-2 I t) -
0.166667 E^(2 I t)]^2}
hamiltMol={{0, 1, 0, 0, 0, 1}, {1, 0, 1, 0, 0, 0}, {0, 1, 0, 1, 0, 0}, {0, 0, 1,
0, 1, 0}, {0, 0, 0, 1, 0, 1}, {1, 0, 0, 0, 1, 0}}
ighamiltMol =
Dynamic@AdjacencyGraph[hamiltMol,
VertexLabels -> Placed["Name", Tooltip],
GraphStyle -> "SpringEmbedding",
VertexShapeFunction -> (Disk[#1, timeList[[#2]]] &)];
Animator[Dynamic[t], {0, 19}, .5]
ighamiltMol
Generates this animation (2 pictures shown, notice the resizing):
I would like my disks' radii not to exceed 2/3 of the distance between two vertices, so that the graph needs no resizing.
The same method applied to GraphPlot[]
and GraphPlot3D[]
also does not work, producing results like those obtained with AdjacencyGraph[]
. I've tried setting a DataRange->{}
, but it doesn't work either. Rescale[]
ing didn't work.
(Note that this is not a problem in a Graphics[]
environment.)
I don't know what to try next.
hamiltMol
andtimeCoeff
are not defined. $\endgroup$hamiltMol
is an adjacency matrix andtimeCoeff[]
looks in a table containing complex exponentials, one per vertex. The problem occurs even with a square and aSin[]
varying disk radius. $\endgroup$