anychart.onDocumentReady(function () {
{from: "Richard", to: "Larry"},
{from: "Richard", to: "Marta"},
{from: "Larry", to: "Marta"},
{from: "Marta", to: "Jane"},
{from: "Jane", to: "Norma"},
{from: "Jane", to: "Frank"},
{from: "Jane", to: "Brett"},
{from: "Brett", to: "Frank"}
chart = anychart.graph(data);
chart.title("Network Graph: Node Behavior");
chart.container("container");
function magnetizingEnabled(enabled) {
chart.interactivity().magnetize(enabled);