code: function(kgraph) {
          zoomToFit(kgraph);
          var nodeMap = {};
          // convert to absolute positions
          toAbsolutePositions(kgraph, {x: 0, y:0}, nodeMap);
          toAbsolutePositionsEdges(kgraph, nodeMap);
          // invoke the 'finish' event
          dispatch.finish({graph: kgraph});
        }
docs: Apply layout for the kgraph style.
  Converts relative positions to absolute positions.