/*
* This file is part of Gradoop.
*
* Gradoop is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gradoop is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Gradoop. If not, see <http://www.gnu.org/licenses/>.
*/
package org.gradoop.utils.statistics;
import org.apache.flink.api.common.ProgramDescription;
import org.gradoop.examples.AbstractRunner;
/**
* Computes all statistics for a given logical graph.
*/
public class StatisticsRunner extends AbstractRunner implements ProgramDescription {
/**
* args[0] - path to input directory
* args[1] - input format (json, csv)
* args[2] - path to output directory
*
* @param args arguments
* @throws Exception if something goes wrong
*/
public static void main(String[] args) throws Exception {
VertexCountRunner.main(args);
EdgeCountRunner.main(args);
VertexLabelDistributionRunner.main(args);
EdgeLabelDistributionRunner.main(args);
VertexDegreeDistributionRunner.main(args);
VertexOutgoingDegreeDistributionRunner.main(args);
VertexIncomingDegreeDistributionRunner.main(args);
DistinctSourceVertexCountRunner.main(args);
DistinctTargetVertexCountRunner.main(args);
DistinctSourceVertexCountByEdgeLabelRunner.main(args);
DistinctTargetVertexCountByEdgeLabelRunner.main(args);
SourceAndEdgeLabelDistributionRunner.main(args);
TargetAndEdgeLabelDistributionRunner.main(args);
DistinctEdgePropertiesByLabelRunner.main(args);
DistinctVertexPropertiesByLabelRunner.main(args);
DistinctEdgePropertiesRunner.main(args);
DistinctVertexPropertiesRunner.main(args);
}
@Override
public String getDescription() {
return "Graph Statistics";
}
}