public int getSourceCount() {
        int ret = 0;
        Iterator<Vertex> iter = iteratorOfVertex();
        while (iter.hasNext()) {
            Vertex v = iter.next();
            if (v instanceof LogicalVertex && ((LogicalVertex) v).isSourceModule()) {
                ret++;
            }
        }
        return ret;
    }