code: public static boolean doGraphAnalysis(Connection connection,
                                            String inputTable,
                                            String orientation,
                                            String weight)
              throws SQLException, InvocationTargetException, NoSuchMethodException,
              InstantiationException, IllegalAccessException {
          final TableLocation tableName = TableUtilities.parseInputTable(connection, inputTable);
          final TableLocation nodesName = TableUtilities.suffixTableLocation(tableName, NODE_CENT_SUFFIX);
          final TableLocation edgesName = TableUtilities.suffixTableLocation(tableName, EDGE_CENT_SUFFIX);
          try {
              createTables(connection, nodesName, edgesName);
              final KeyedGraph graph =
                      doAnalysisAndReturnGraph(connection, inputTable, orientation, weight);
              final boolean previousAutoCommit = connection.getAutoCommit();
              connection.setAutoCommit(false);
              storeNodeCentrality(connection, nodesName, graph);
              storeEdgeCentrality(connection, edgesName, graph);
              connection.setAutoCommit(previousAutoCommit);
          } catch (SQLException e) {
              LOGGER.error("Problem creating centrality tables.");
              final Statement statement = connection.createStatement();
              try {
                  statement.execute("DROP TABLE IF EXISTS " + nodesName);
                  statement.execute("DROP TABLE IF EXISTS " + edgesName);
              } finally {
                  statement.close();
              }
              return false;
          }
          return true;
      }
docs: Calculate centrality indices on the nodes and edges of a graph
  constructed from the input table.
  
  @param connection  Connection
  @param inputTable  Input table
  @param orientation Global orientation
  @param weight      Edge weight column name
  @return True if the calculation was successful
  @throws SQLException
  @throws InvocationTargetException
  @throws NoSuchMethodException
  @throws InstantiationException
  @throws IllegalAccessException