public RawCallGraph readCallGraph() {
    final BinExport2.CallGraph callGraph = binexport.getCallGraph();

    final List<RawFunction> nodes = new ArrayList<>();
    for (final BinExport2.CallGraph.Vertex vertex : callGraph.getVertexList()) {
      final String name = getFunctionName(vertex);

      nodes.add(
          new RawFunction(
              new CAddress(vertex.getAddress()),
              name,
              vertexToFunctionType(vertex.getType()),
              side));
    }

    final List<RawCall> edges = new ArrayList<>();
    final Set<IAddress> edgeSet = new TreeSet<>();

    for (final BinExport2.CallGraph.Edge edge : callGraph.getEdgeList()) {
      final RawFunction source = nodes.get(edge.getSourceVertexIndex());
      if (edgeSet.add(source.getAddress())) {
        edges.add(
            new RawCall(source, nodes.get(edge.getTargetVertexIndex()), source.getAddress(), side));
      }
    }

    return new RawCallGraph(nodes, edges, side);
  }
Reads data from BinExport2 files and renders disassemblies.
java/ui/src/main/java/com/google/security/zynamics/bindiff/io/BinExport2Reader.java