Re: social network analysis

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steve Schapel (schapel_at_mvps.org.ns)
Date: 12/26/04


Date: Mon, 27 Dec 2004 07:24:00 +1300

Phillip,

I am not sure whether this is the best way, but here's an idea... You
will need a table to define the relationships. It will require 3
fields, RelationshipFrom, RelationshipTo, and RelationshipType. The
RelationshipFrom and RelationshipTo fields will both contain linked data
to the primary key field of the main People table, let's say this is
PersonID. This will allow for non-reciprocal relationships. In other
words, if A is B's workmate, then B will presumably always be A's
workmate, but if C thinks D is his friend, doesn't automatically mean
that D will regard C as his friend. So, for example, if the PersonIDs
of John, Mary, Bob, and Fran are 1, 2, 3, and 4, and let's suppose John
and Fran are workmates, and Fran also regards Bob as a friend, and Mary
and Bob are married, the data in the Relationships table might look like
this...

  1 4 workmate
  4 1 workmate
  4 1 friend
  2 3 husband
  3 2 wife

On the basis of this, you should be able to do the analyses you need.
As for data entry, if you have a form based on the Relationships table,
which you place as a subform on the main People form, you will be able
to enter as many relationship definitions with as many other people as
required, for any given individual. You could use VBA code on this
subform's AfterUpdate event to automatically enter the "mirror"
relationship where applicable, e.g. if you are on John's record and
enter a workmate relationship with Fran, the code will append a record
for Fran's workmate relationshp with John.

-- 
Steve Schapel, Microsoft Access MVP
PhillipM wrote:
> Is it possible to construct a database in access that would keep track of 
> complex (many-to-many) social relationships?  I've been puzzling over 
> relationships for a while but can't see how it can be done.  Am I missing 
> something?  
> 
> What access won't seem to do is this:
> There is a primary table with a list of people.
> In each record there is a multiple-entry field for inserting links to other 
> records in the same table. 
> 
> So, for example, John, Mary, Bob, and Fran are in the database.  John is 
> friends with Mary and Bob but not Fran.  I would like to be able to insert 
> links on John's record to Mary and Bob.  Similarly, Mary is friends with 
> John, Bob and Fran and I would like to have a field containing links to all 
> three other records.  The idea is to have a database that can examine and 
> manuplate social network information: i.e., X is Y's spouse , friends with A, 
> B, & C, and works with P & Q.  Is there some way of doing this in Access or 
> do I need a different product?


Relevant Pages

  • Happy Independence Day
    ... Bob came to work in the same insurance office where I worked. ... marine officers at Mitchell Field, ... This Marine officer, pilot, successful insurance salesman, friend, and good ... About two years after meeting Bob and three years since leaving Viet Nam, ...
    (misc.invest.stocks)
  • Re: All I Really Need To Know I Learned In Kindergarten
    ... all the things you told me about Bob, ... want to be your friend, ... but I don't want you to lie to me. ... said, about contacting Marc, and I thought, that's probably a lie, ...
    (rec.music.dylan)
  • Re: Skywatch Game - Revived!
    ... knew Bob Asprin, Kelly Freas, Ted Sturgeon, Harry Stubbs, Bob Tucker, ... Frederickson is a brilliant deductive intellect, ... He was a good friend and a good writer. ... To give you an idea of how much I love a good mystery, ...
    (rec.arts.sf.tv.babylon5.moderated)
  • Re: You have a lot to learn about being a friend
    ... You above everyone else has no business discussing fran or even thinking ... rather than confronting their obnoxious behavior is cowardly." ... They would not have been a very good friend to try to convince ... But I have witness the biggest event in my history of AMF and am ...
    (alt.med.fibromyalgia)
  • Re: why hierarchy?
    ... NOT removed from above query, since dbd's NLI doesn't implement NOT. ... bob sam ... tom (friend at work) billy ...
    (comp.databases.theory)