// This sample demonstrates how to route all
  // links in the diagram with a single method call

  diagram.routeAllLinks();