1 / 42

Graphs

Graphs. &. Matrices. Todd Cromedy & Bruce Nicometo. March 30, 2004. Graphs. Graph Theory provides vocabulary which can be used to label and denote many social structural properties.

Download Presentation

Graphs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Graphs & Matrices Todd Cromedy & Bruce Nicometo March 30, 2004

  2. Graphs • Graph Theory provides vocabulary which can be used to label and denote many social structural properties. • Graph Theory gives us mathematical operations and ideas with which many of these properties can be quantified and measured (see Freeman 1984; Seidman and Foster 1987b). • Graph Theory gives us representation of a social network as a model of a social systemconsisting of a set of actors and the ties between them.

  3. Graph Types Relational Non-directional (simple to complex) Directed (simple to complex) Signed and Valued Hypergraphs

  4. Model • By model we mean a simplified representation of a situation that contains some, but not all, of the elements of the situation it represents (Roberts 1976; Hage and Harary 1983). • In this sense, a graph is a model of a social network in the same way that a model train set is a model of a railway system. • Graphs have been used in social networks as a means of formally representing social relations and quantifying structural properties

  5. Matrices Matrices are alternative ways to represent and summarize network data. A matrix contains exactly the same information as a graph. A matrix is more useful for computation and computer analysis.

  6. Some Graph Characteristics In a graph of a social network with single nondirectional dichotomous relation, the nodes (n) represent actors, and the lines (L) represent the ties that exist between pairs of actors. The tie is either present of absent between each pair of actors. Nondirectional relations include: Co-memberships in formal and informal groups or orgs Some kinship relations: “is married to” “lives near” Interactions― “works with”

  7. More Characteristics A graph consists of two sets of information: The set of N= {n1,n2 … ng}, and The set of L= {l1, l2 … lL} between pairs of nodes. There are g nodes and L lines. In a graph each line is an unordered pair of distinct nodes, lk = (ni, nj).

  8. Example • Here we take six nodes to represent six children. • A line between two nodes indicates that the children represented by these nodes “live near” each other. • For example, Sarah and Allison, live near each other so the line is included in the set of lines. • Allison and Elliot do not live near each other, so the line is not in the set of lines.

  9. Actor Lives near n1Allison Ross, Sarah n2 Eliot Drew n3 Drew Eliot n4 Keith Ross, Sarah n5 Ross Allison, Keith, Sarah n6 Sarah Allison, Keith, Ross n1 Allison l2 n2 Drew n6 Sarah l1 l3 l6 l5 n3 Eliot n5 Ross l4 n4 Keith

  10. Line Characteristics Adjacent or Incident Two nodes are adjacent if line lk =(n1,n2) A node is incident within a line, and the line with the node if the node is one of the unordered pair of nodes defining the line.

  11. Social Networks Social networks can be studied at different levels. Actors Dyads Triad Subgroup Whole Group

  12. Dyads and Triads • A dyad, representing a pair of actors and the possible tie between them, is a (node-generated) subgraph consisting of a pair of nodes and the possible line between the nodes. • Triadic analysis is also based on subgraphs, where the number of nodes is three. A triad is a subgraph consisting of three nodes and the possible lines among them.

  13. Nodal Degree • The degree of a node is the number of lines that are incident with it. • Degrees are very easy to compute, and yet can be quite informative in many applications. • For example, if we observe children playing together, and represent children by nodes, and instances of pairs of children playing by lines in a graph, then a node with a small degree would indicate a child who played few with others, and a node with a large degree would indicate a child who played with may others.

  14. Nodal Degree d(n1) =2 d(n2) =1 d(n3)=1 d(n4) =2 d(n5) =3 d(n6) =3 n1 Allison l2 n2 Drew n6 Sarah l1 l3 l6 l5 n3 Eliot n5 Ross l4 n4 Keith

  15. Other Links Besides ties there are other means to consider the way in which two nodes can be linked by “indirect” routes. Walks- A walk is a sequence of nodes and lines, starting and ending with nodes, in which each node is incident with the lines following and preceding it in the sequence. The length of a walk is the number of occurrences of lines in it. If a line is included more than once in the walk, it is counted each time it occurs. n2 W=n1l2 n4l3 n2l3 n4 n4 l3 l2 n1

  16. Trails- a walk in which all of the lines are distinct, though some nodes may be included more than once. W= n4l3 n2l4 n3l5 n4l2 n1 n2 l3 l4 n1 n4 n3 l5

  17. Paths- a walk in which all nodes and all lines are distinct. For example, a path through a communication network mean no actor is informed more than once. The length of a path is the number of lines in it. n2 W= n1l2 n4l3 n2 l3 l2 n1 n4

  18. Walks, Trail, Paths • Notice that every path is a trail, and every trail is a walk. • So any pair of nodes connected by a path is also connected by a trail and by a walk. • Thus, a walk is the most general and a path is the least general kind of “route” through a graph. • Since all paths are walks (but without repeating nodes or lines) a path is likely to be shorter compared to a walk or a trail.

  19. Closed Walks, Tours, and Cycles • Some walks begin and end at the same node. • A walk that begins and ends with the same node is called a closed walk. • A cycle is a closed walk of at least three nodes in which all lines are distinct , and all nodes except the beginning and ending node are distinct. • Cycles are important in the study of balance and clusterability in signed graphs. • A tour is a closed walk in which each line in the graph is used at least once.

  20. Geodesics • A shorter path between two nodes is referred to as a geodesic. • The geodesic distance or simply the distance between two nodes is defined as the length of a geodesic between them. • The distance between two nodes is the length of any shortest path between them.

  21. Connectivity of Graphs The connectivity of a graph is a function of whether a graph remains connected when nodes and/or lines are deleted. Two components of connectivity are cutpoints and bridges.

  22. Cutpoints • A node, is a cutpoint if the number of components in the graph contains less than the number of components in the subgraph. • In a communication network, an actor who is a cutpoint is critical, in the sense that if that actor is removed from the network, the remaining network has two subsets of actors, between whom no communication can travel. • The concept of a cutpoint can be extended from a single node to a set of nodes necessary to keep the graph connected.

  23. Cutpoints • Bridges are notion analogous to that of cutpoint exists for lines. • A bridge is a line that is critical to the connectedness of the graph. • A bridge is a line such that the graph containing the line has fewer components than the subgraph that is obtained after the line is removed.

  24. Example of a cutpoint in a graph n2 n5 n6 n3 n1 n7 n4

  25. n2 n5 n6 n3 n7 n4

  26. Directed Graphs • A relation is directional if the ties are oriented from one actor to another. • The import/export of goods between nations is an example of a directional relation. • Choices of friendships are another example of a directional relation.

  27. Directed Graphs • A directional relation can be represented by a directed graph, or a diagraph for short. • A diagraph consists of a set of nodes & a set of arcs, representing directed ties between actors. • The differences between a graph and a directed graph is that in a directed graph the direction of the lines are specified.

  28. n1 ARCS Ties between actors l1 l4 n2 n6 l8 l3 l7 l2 l5 n5 n3 l6 n4

  29. Signed Graphs • Occasionally relations are measured in which the ties can be interpreted as being either positive or negative (valence), in affect, evaluation, or meaning. • For example, one might measure the relations “loves” and “hates” among the people in a group, or the relations “is allied with” and “is at war with” among countries.

  30. SIGNED GRAPH - - - + + - +

  31. Hypergraphs • Some social network applications consider ties among subsets of actors in a network, such as the tie among people who belong to the same club or civic organization. • Such networks called affiliation networks, or membership networks require considering subsets of nodes in a graph, where these subsets can be any size.

  32. Hypergraphs • A hypergraph, rather than a graph, is the appropriate representation for affiliation network data. • A hypergraph consists of a set of objects and a collection of subsets of objects, in which each object belongs to at least one subset, and no subset is empty.

  33. a3 a2 hypergraph a4 a1

  34. Hypergraph • Hypergraphs are more general than graphs. • A graph is a special case of a hypergraph in which the number of points in each edge is exactly equal to two. • Any graph can be represented as a hypergraph, by letting the nodes in the graph be the points in the hypergraph, and letting each line in the graph be an edge in the hypergraph. • Each edge thus contains exactly two points.

  35. matrices 00010011010101 00101100110101 01101010001010 10101010101011 11110101101001

  36. The information in a graph may also be expressed in a matrix form There are two type of matrices especially useful. Sociomatrix (X) or adjacency matrix Incidence (I) matrix

  37. Matrix Characteristics Size = g x g There is a row and a column for each node Sociomatrix The entries record which pairs of nodes are adjacent Size = g x L Incidence Nodes index rows Lines index columns

  38. Sociomatrix (X) X n1 n2 n3 n4 n5 n6 n1 - 0 0 0 1 1 n2 0 - 1 0 0 0 n3 0 1 - 0 0 0 n4 0 0 0 - 1 1 n5 1 0 0 1 - 1 n6 1 0 0 1 1 -

  39. n1 Allison l2 n2 Drew n6 Sarah l1 l3 l6 l5 n3 Eliot n5 Ross l4 n4 Keith

  40. Incidence Matrix (I) I l1 l2l3l4 l5l6 n1 1 1 0 0 0 0 n2 0 0 1 0 0 0 n3 0 0 1 0 0 0 n4 0 0 0 1 1 0 n5 1 0 0 1 0 1 n6 0 1 0 0 1 1

  41. Directed Matrix X n1 n2 n3 n4 n5 n6 n1 - 1 0 0 1 0 n2 0 - 1 0 0 1 n3 0 1 - 0 0 0 n4 0 0 0 - 1 0 n5 0 0 0 0 - 1 n6 0 1 0 0 0 -

  42. n1 ARCS Ties between actors l1 l4 n2 n6 l8 l3 l7 l2 l5 n5 n3 l6 n4

More Related