Lines 6-25
Link Here
|
6 |
arrayref'. The key to this hash is the name of relation, and the value of |
6 |
arrayref'. The key to this hash is the name of relation, and the value of |
7 |
the hash is a list of identities involved in this relation. |
7 |
the hash is a list of identities involved in this relation. |
8 |
|
8 |
|
9 |
Take the synopsis for an example, the structure: |
|
|
10 |
|
11 |
my $relation = { |
12 |
'WorkWith' => [qw/Marry Rose/], |
13 |
'ChatWith' => [qw/Marry Peacock/], |
14 |
'DanceWith' => [qw/Rose Joan/], |
15 |
'HackWith' => [qw/Gugod Autrijus/], |
16 |
}; |
17 |
|
18 |
Defines 4 issues which have common people involves in, the relation |
19 |
'WorkWith' involves Marry and Rose, and the relation 'ChatWith' involves |
20 |
Marry and Peacock. By this 2 relations, we say that Marry is directly |
21 |
connected to Rose and Peacock, and Rose and Peacock are connected to each |
22 |
other indirectly, with degree of separation 1. Likewise, Marry and Joan |
23 |
are connected to each other with degree of separation 2. |
24 |
|
25 |
WWW: http://search.cpan.org/dist/Graph-SocialMap/ |
9 |
WWW: http://search.cpan.org/dist/Graph-SocialMap/ |