// GraphTea Project: http://github.com/graphtheorysoftware/GraphTea
// Copyright (C) 2012 Graph Theory Software Foundation: http://GraphTheorySoftware.com
// Copyright (C) 2008 Mathematical Science Department of Sharif University of Technology
// Distributed under the terms of the GNU General Public License (GPL): http://www.gnu.org/licenses/
package graphtea.extensions.reports.topological;

import java.util.List;
import graphtea.graph.graph.GraphModel;
import graphtea.platform.lang.CommandAttitude;
import graphtea.plugins.reports.extension.GraphReportExtension;

import java.util.ArrayList;

/**
 * @author Ali Rostami

 */

@CommandAttitude(name = "sumconn_index", abbreviation = "_sci")
public class HarmonicIndex implements GraphReportExtension<ArrayList<String>> {
    public String getName() {
        return "Harmomic Index";
    }

    public String getDescription() {
        return "Harmonic Index";
    }

    public ArrayList<String> calculate(GraphModel g) {
        ZagrebIndexFunctions zif = new ZagrebIndexFunctions(g);
        ArrayList<String> out = new ArrayList<>();
        out.add("Harmonic Index : "+zif.getHarmonicIndex());
        return out;
    }



    @Override
    public String getCategory() {
        return "Topological Indices-Degree Based";
    }
}