<s> import logging <EOL> import sys <EOL> from apgl . graph import * <EOL> from apgl . generator import * <EOL> from apgl . util import * <EOL> logging . basicConfig ( stream = sys . stdout , level = logging . INFO ) <EOL> class GraphStatisticsProfile : <EOL> def __init__ ( self ) : <EOL> numVertices = <NUM_LIT> <EOL> numFeatures = <NUM_LIT:0> <EOL> vList = VertexList ( numVertices , numFeatures ) <EOL> graph = SparseGraph ( vList ) <EOL> p = <NUM_LIT> <EOL> generator = ErdosRenyiGenerator ( p ) <EOL> self . graph = generator . generate ( graph ) <EOL> self . statistics = GraphStatistics ( ) <EOL> def profileScalarStatistics ( self ) : <EOL> ProfileUtils . profile ( '<STR_LIT>' , globals ( ) , locals ( ) ) <EOL> def profileVectorStatistics ( self ) : <EOL> ProfileUtils . profile ( '<STR_LIT>' , globals ( ) , locals ( ) ) <EOL> profiler = GraphStatisticsProfile ( ) <EOL> profiler . profileScalarStatistics ( ) </s>
