{"id":16302,"date":"2019-10-07T20:38:05","date_gmt":"2019-10-08T00:38:05","guid":{"rendered":"https:\/\/bangla.salearningschool.com\/recent-posts\/graph-mining-shared-nearest-neighbors-clustering-community-detection\/"},"modified":"2019-10-10T14:44:33","modified_gmt":"2019-10-10T18:44:33","slug":"graph-mining-shared-nearest-neighbors-clustering-community-detection","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=16302","title":{"rendered":"Graph Mining: Shared Nearest Neighbors : Clustering : Community Detection"},"content":{"rendered":"<p>Graph Mining: Shared Nearest Neighbors : Clustering : Community Detection<\/p>\n<p>Graph Mining: Shared Nearest Neighbors (SNN): Clustering : Community Detection: Learn by Finding Answers to the Following Questions.<\/p>\n<p>Will use SNN sometimes.<\/p>\n<p>What is one another name of the algorithm: Shared Nearest Neighbors?<\/p>\n<p>What is the purpose of the Algorithm: Shared Nearest Neighbors?<\/p>\n<p>Can you name other Algorithms that serve the same or similar purpose?<\/p>\n<p>What is the Criteria that SNN uses?<\/p>\n<p>Is SNN Hierarchical? What does Hierarchical mean in the context of Clustering\/Community detection?<\/p>\n<p>How does SNN work? i.e. what is the algorithm? i.e. how does SNN create clusters\/communities?<\/p>\n<p>Give and explain the steps in SNN with a small example.<\/p>\n<p>What is threshold \u03c4 in the SNN algorithm? Is it numeric? What can be the maximum and the minimum values?<\/p>\n<p>For the following Undirected and unweighted Graphs, show the steps and the final clusters.<br \/>\nEdges: {0, 1} {0, 2} {0, 3} {1, 2}, {1, 3} {2, 3} {2, 4} {3, 4}<br \/>\nYou can draw the graph first. You can use \u03c4 = 2.<\/p>\n<p>What is Node Similarity or Node Proximity between two nodes in SNN?<\/p>\n<p>What is the output of SNN? i.e. on an undirected and unweighted Graph?<\/p>\n<p>Will the output will have weights on the edges?<\/p>\n<p>Give the pseudocode for SNN algorithm<\/p>\n<p>Implement the SNN algorithm in Python or R or Matlab &#8211; whichever you prefer.<\/p>\n<p>Can you apply SNN on weighted Graphs?<\/p>\n<p>If you can apply SNN on weighted graphs, then how will you apply the Threshold, say theta?<\/p>\n<p>What is the first step in applying theta &#8211; if that is doable?<\/p>\n<p>What is the difference between tau (\u03c4) and theta.<\/p>\n<p>What is k in SNN algorithms (if Weighted)?<\/p>\n<p>How do we know which tau(\u03c4) or \u201dk\u201d to choose?<\/p>\n<p>What are some evaluation metrics for tau or k?<\/p>\n<p>what is Conductance?<\/p>\n<p>Conductance whose property is this? The input graph, the output graph or the possible communities (from where you select the final communities)<\/p>\n<p>Is low value or high value of Conductance &#8211; that is used for the communities?<\/p>\n<p>When comparing two k or tau values &#8211; which k or tau that you accept? Think in terms of Conductance.<\/p>\n<p>So, what was the purpose behind choosing these K or Tau values? What do we want to achieve ultimately? Is it to achieve Stronger communities by checking all possible communities and then measuring the community strength using Conductance? If it is &#8211; do all the questions on Weighted Graphs make sense? Why, Why not? How?<\/p>\n<p>Write a Pseudo-code for SNN on Undirected Weighted Graphs. Find the optimal value for K and tau.<\/p>\n<p>Implement SNN on Undirected Weighted Graphs. Print the optimal value for K and tau.<\/p>\n<p>Why are we detecting communities and clusters anyway? What are the practical applications of such algorithms?<br \/>\nHint: Check notes on Introduction to Clustering\/Community detection<\/p>\n<p><strong>Some Answers:<\/strong><br \/>\nWhat is one another name of the algorithm: Shared Nearest Neighbors?<br \/>\nAns: Jarvis-Patrick algorithm<\/p>\n<p>Can you name other Algorithms that serve the same or similar purpose?<br \/>\nAns: Maximal-Clique Enumeration, K- Spanning Tree, Shared Nearest Neighbor, Highly Connected Components, MinCut, Betweenness Based Algorithms, Louvain Modularity, CNM Algorithm<\/p>\n<p>What is the Criteria that SNN uses?<br \/>\nAns: Two nodes are similar if they share a lot of neighbors<\/p>\n<p>Is SNN Hierarchical?<br \/>\nAns: No<\/p>\n<p>What is Node Similarity or Node Proximity between two nodes in SNN?<br \/>\nAns: Count of the shared number of nodes\/neighbors<\/p>\n<p>What is k in SNN algorithms (if Weighted)?<br \/>\nretain its k neighbors<\/p>\n<p><strong>Resources:<\/strong><\/p>\n<p>Jarvis-Patrick Clustering<br \/>\n<a href=\"https:\/\/btluke.com\/jpclust.html\">https:\/\/btluke.com\/jpclust.html<\/a><\/p>\n<p>Empirical Comparison of Algorithms for Network Community Detection<br \/>\n<a href=\"https:\/\/cs.stanford.edu\/~jure\/pubs\/communities-www10.pdf\">https:\/\/cs.stanford.edu\/~jure\/pubs\/communities-www10.pdf<\/a><\/p>\n<p><strong>By<\/strong><\/p>\n<p><strong>Sayed Ahmed<\/strong><\/p>\n<p><strong>Linkedin<\/strong>: <a href=\"https:\/\/ca.linkedin.com\/in\/sayedjustetc\">https:\/\/ca.linkedin.com\/in\/sayedjustetc<\/a><\/p>\n<p><strong>Blog<\/strong>: <a href=\"http:\/\/bangla.salearningschool.com\/\">http:\/\/Bangla.SaLearningSchool.com<\/a>, <a href=\"http:\/\/sitestree.com\">http:\/\/SitesTree.com<\/a><br \/>\n<strong>Online and Offline Training<\/strong>: <a href=\"http:\/\/training.SitesTree.com\">http:\/\/Training.SitesTree.com<\/a><\/p>\n<p>Not that this site is doing anything great work; However, if you want to contribute to the operation of this site (or charitable\/non-profit work in education sector), you can donate to: safoundation using <strong>Paypal<\/strong>.<\/p>\n<p><strong>Affiliate Links:<\/strong><br \/>\nHottest Deals on Amazon USA: <a href=\"http:\/\/tiny.cc\/38lddz\">http:\/\/tiny.cc\/38lddz<\/a><\/p>\n<p>Hottest Deals on Amazon CA: <a href=\"http:\/\/tiny.cc\/bgnddz\">http:\/\/tiny.cc\/bgnddz<\/a><\/p>\n<p>Hottest Deals on Amazon Europe: <a href=\"http:\/\/tiny.cc\/w4nddz\">http:\/\/tiny.cc\/w4nddz<br \/>\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Graph Mining: Shared Nearest Neighbors : Clustering : Community Detection Graph Mining: Shared Nearest Neighbors (SNN): Clustering : Community Detection: Learn by Finding Answers to the Following Questions. Will use SNN sometimes. What is one another name of the algorithm: Shared Nearest Neighbors? What is the purpose of the Algorithm: Shared Nearest Neighbors? Can you &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=16302\">Continue reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1905,182],"tags":[],"class_list":["post-16302","post","type-post","status-publish","format-standard","hentry","category-graph-mining","category---blog","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":22885,"url":"http:\/\/bangla.sitestree.com\/?p=22885","url_meta":{"origin":16302,"position":0},"title":"Graph Mining: Shared Nearest Neighbors &#8211; Community Detection","author":"Sayed","date":"March 21, 2021","format":false,"excerpt":"Resources to Learn From Resources:Jarvis-Patrick Clusteringhttps:\/\/btluke.com\/jpclust.htmlEmpirical Comparison of Algorithms for Network Community Detectionhttps:\/\/cs.stanford.edu\/~jure\/pubs\/communities-www10.pdf Read the resources above to find answers. Shared Nearest Neighbors : Clustering : Community Detection Graph Mining: Shared Nearest Neighbors : Clustering : Community Detection Graph Mining: Shared Nearest Neighbors (SNN): Clustering : Community Detection: Learn by\u2026","rel":"","context":"In &quot;Graph Mining&quot;","block_context":{"text":"Graph Mining","link":"http:\/\/bangla.sitestree.com\/?cat=1905"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22873,"url":"http:\/\/bangla.sitestree.com\/?p=22873","url_meta":{"origin":16302,"position":1},"title":"Graph Mining: Learning Resources","author":"Sayed","date":"March 21, 2021","format":false,"excerpt":"Resources: Public URLs Graph Mining: Introducing Graphs: Learn by finding answers to the following questions?\u00a0http:\/\/bangla.salearningschool.com\/recent-posts\/graph-mining-introducing-graphs-learn-by-finding-answers-to-the-following-questions\/ Graph Mining: What is Graph Mining? Learn by finding answers to the following questions. Can you answer the following questions?\u00a0http:\/\/bangla.salearningschool.com\/recent-posts\/graph-mining-what-is-graph-mining-learn-by-finding-answers-to-the-following-questions-can-you-answer-the-following-questions\/ Graph Mining: Shared Nearest Neighbors : Clustering : Community Detection.\u00a0http:\/\/bangla.salearningschool.com\/recent-posts\/graph-mining-shared-nearest-neighbors-clustering-community-detection\/ Graph Mining: Betweenness Based Clustering:\u2026","rel":"","context":"In &quot;Graph Mining&quot;","block_context":{"text":"Graph Mining","link":"http:\/\/bangla.sitestree.com\/?cat=1905"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22883,"url":"http:\/\/bangla.sitestree.com\/?p=22883","url_meta":{"origin":16302,"position":2},"title":"Graph Mining: Community and Cluster Detection","author":"Sayed","date":"March 21, 2021","format":false,"excerpt":"Resources to Learn From Resources:Defining and identifying communities in networkshttps:\/\/www.pnas.org\/content\/101\/9\/2658Community Structure:https:\/\/en.wikipedia.org\/wiki\/Community_structureGraph Clustering:https:\/\/www.csc2.ncsu.edu\/faculty\/nfsamato\/practical-graph-mining-with-R\/slides\/pdf\/Graph_Cluster_Analysis.pdf Read the resources above to find answers. Community Detection: Learn by finding answers to the following questions. Can you answer the following questions on Community Detection? Graph Mining: Community Detection: Learn by finding answers to the following questions.\u2026","rel":"","context":"In &quot;Graph Mining&quot;","block_context":{"text":"Graph Mining","link":"http:\/\/bangla.sitestree.com\/?cat=1905"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16300,"url":"http:\/\/bangla.sitestree.com\/?p=16300","url_meta":{"origin":16302,"position":3},"title":"Graph Mining: Community Detection: Learn by finding answers to the following questions. Can you answer the following questions on Community Detection?","author":"Sayed","date":"October 7, 2019","format":false,"excerpt":"Graph Mining: Community Detection: Learn by finding answers to the following questions. Can you answer the following questions on Community Detection? What is a community anyway? Describe from your real-world\/social understanding of it? Can you relate it to the Graphs concept in Computer Science? In your daily life do you\u2026","rel":"","context":"In &quot;AI ML DS RL DL NN NLP Data Mining Optimization&quot;","block_context":{"text":"AI ML DS RL DL NN NLP Data Mining Optimization","link":"http:\/\/bangla.sitestree.com\/?cat=1910"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22881,"url":"http:\/\/bangla.sitestree.com\/?p=22881","url_meta":{"origin":16302,"position":4},"title":"Graph Mining: Node Importance","author":"Sayed","date":"March 21, 2021","format":false,"excerpt":"Resources to Learn From A Book. Nagiza F. Samatova, William Hendrix, John Jenkins, Kanchana Padmanabhan, and Arpan Chakraborty. 2013. Practical Graph Mining with R. Chapman & Hall\/CRC. Read the resources above to find answers. Betweenness Based Clustering: Learn by finding answers to the following questions. Can you answer the following?\u2026","rel":"","context":"In &quot;Graph Mining&quot;","block_context":{"text":"Graph Mining","link":"http:\/\/bangla.sitestree.com\/?cat=1905"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":16305,"url":"http:\/\/bangla.sitestree.com\/?p=16305","url_meta":{"origin":16302,"position":5},"title":"Graph Mining: Betweenness Based Clustering: Learn by finding answers to the following questions. Can you answer the following?","author":"Sayed","date":"October 8, 2019","format":false,"excerpt":"Graph Mining: Betweenness Based Clustering: Learn by finding answers to the following questions. Can you answer the following? What are the types of Betweenness? What is Vertex Betweenness? i.e. the concept What is Edge Betweenness? i.e. the concept Describe Vertex Betweenness? maybe just giving an example What does Vertex Betweenness\u2026","rel":"","context":"In &quot;Graph Mining&quot;","block_context":{"text":"Graph Mining","link":"http:\/\/bangla.sitestree.com\/?cat=1905"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/16302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16302"}],"version-history":[{"count":1,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/16302\/revisions"}],"predecessor-version":[{"id":16317,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/16302\/revisions\/16317"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16302"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}