Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Algorithm::SocialNetwork 0.07

    Download button

    No screenshots available
    Downloads: 422  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Kang-min Liu | More programs
    Perl Artistic License / FREE
    August 16th, 2007, 18:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Algorithm::SocialNetwork description

    A social network analysis.

    Algorithm::SocialNetwork is a social network analysis.

    SYNOPSIS

    use Graph::Undirected;
    use Algorithm::SocialNetwork;

    my $G = Graph::Undirected->new();
    $G->add_edges([qw(a b)], [qw(b c)]);
    my $algo = Algorithm::SocialNetwork->new(graph => $G3);
    my $BC = $algo->BetweenessCentrality();
    # $BC->{a} is 0
    # $BC->{b} is 2
    # $BC->{c} is 0


    METHODS

    So far this module implement the algorithm provided in [1]. More handy algorithm would be included in the future.
    This module is a Spiffy module, methods provided as "field" are marked.

    new([graph => $G])

    Object constructor, an optional graph parameter could be passed in to specify the network graph to be analyzed.

    graph([$G]) [Spiffy field]

    Without arguments, this method return the current Graph object.

    BetweenessCentrality([$vertex])

    The implementation of algorithm provided in [1], if an optional parameter $vertex is given, return the BetwenessCentrality value of that vertex, otherwise, return all vertice's BetweenessCentrality value, stored in a hash, which hash node name as keys.

    ClusteringCoefficient($vertex)

    Return the clustering coefficient of a given vertex.
    WeightedClusteringCoefficient($vertex)

    Return the weighted clustering coefficient of a given vertex. The graph object passed in should have 'weight' attribute set on edges. Weights are default to 1 if it's not set.

    DistanceCentrality($vertex)

    Return the distance centrality of a given vertex.

    ClosenessCentrality($vertex)

    An alias of DistanceCentrality().

    GraphCentrality($vertex)

    Return the graph centrality of a given vertex.

    edges(@vertices)

    Return a list of edges that connets any two of @vertices.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    network analysis | social network | Perl module | algorithm | social | network

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM