Changeset 300589 for src/graph


Ignore:
Timestamp:
01/11/09 19:37:48 (4 years ago)
Author:
Tiago de Paula Peixoto <tiago@…>
Branches:
master, python3
Children:
7e99be
Parents:
8cd708
git-author:
Tiago de Paula Peixoto <tiago@…> (01/11/09 18:43:21)
git-committer:
Tiago de Paula Peixoto <tiago@…> (01/11/09 19:37:48)
Message:
Add vertex and edge average calculation

This adds vertex_average() and edge_average() to the stats module.
Location:
src/graph/stats
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • src/graph/stats/Makefile.am

    r1c8432 r300589  
    11## Process this file with automake to produce Makefile.in 
    22 
    3 AM_CPPFLAGS =\ 
    4     -I$(srcdir)/.. \ 
    5     -I$(srcdir)/../../boost-workaround \ 
    6     -DHAVE_CONFIG_H 
     3AM_CPPFLAGS = $(MOD_CPPFLAGS) 
    74 
    8 AM_CFLAGS=$(AM_CXXFLAGS) 
     5AM_CXXFLAGS = $(CXXFLAGS) 
    96 
    107libgraph_tool_statsdir = $(pythondir)/graph_tool/stats 
     
    1714    graph_components.cc \ 
    1815    graph_histograms.cc \ 
     16    graph_average.cc \ 
    1917    graph_parallel.cc \ 
    2018    graph_stats_bind.cc 
     
    2321    graph_components.hh \ 
    2422    graph_parallel.hh \ 
    25     graph_histograms.hh 
     23    graph_histograms.hh \ 
     24    graph_average.hh 
    2625 
    27 libgraph_tool_stats_la_LIBADD = \ 
    28     $(PYTHON_LDFLAGS) \ 
    29     $(BOOST_LDFLAGS) \ 
    30     $(OPENMP_LDFLAGS) \ 
    31     -lboost_python \ 
    32     -lboost_iostreams \ 
    33     -lexpat 
     26libgraph_tool_stats_la_LIBADD = $(MOD_LIBADD) 
    3427 
    35 # needed for typeinfo objects to work across DSO boundaries. 
    36 # see http://gcc.gnu.org/faq.html#dso 
    37 libgraph_tool_stats_la_LDFLAGS = \ 
    38     -module \ 
    39     -avoid-version \ 
    40     -export-dynamic \ 
    41     -no-undefined \ 
    42     -Wl,-E 
     28libgraph_tool_stats_la_LDFLAGS = $(MOD_LDFLAGS) 
  • src/graph/stats/graph_stats_bind.cc

    r780a80 r300589  
    2121void export_parallel(); 
    2222void export_histograms(); 
     23void export_average(); 
    2324 
    2425BOOST_PYTHON_MODULE(libgraph_tool_stats) 
     
    2728    export_parallel(); 
    2829    export_histograms(); 
     30    export_average(); 
    2931} 
Note: See TracChangeset for help on using the changeset viewer.