{"id":2918,"date":"2025-06-07T14:37:06","date_gmt":"2025-06-07T14:37:06","guid":{"rendered":"https:\/\/diznr.com\/?p=2918"},"modified":"2025-06-07T14:37:06","modified_gmt":"2025-06-07T14:37:06","slug":"day-07part-02-discrete-parallel-edge-and-self-loop-simple-graph-multi-graph-graph-pseudo","status":"publish","type":"post","link":"https:\/\/www.reilsolar.com\/pdf\/day-07part-02-discrete-parallel-edge-and-self-loop-simple-graph-multi-graph-graph-pseudo\/","title":{"rendered":"Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph."},"content":{"rendered":"<p>Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph.<\/p>\n<p>[fvplayer id=&#8221;171&#8243;]<\/p>\n<h3 class=\"\" data-start=\"0\" data-end=\"101\"><strong data-start=\"4\" data-end=\"99\">Parallel Edge, Self Loop, Simple Graph, Multigraph, and Pseudograph in Discrete Mathematics<\/strong><\/h3>\n<p class=\"\" data-start=\"103\" data-end=\"299\">Graphs are fundamental structures in <strong data-start=\"140\" data-end=\"164\">Discrete Mathematics<\/strong> and <strong data-start=\"169\" data-end=\"189\">Computer Science<\/strong>, used to model relationships between objects. Let&#8217;s explore different types of graphs and their properties.<\/p>\n<h3 data-start=\"306\" data-end=\"349\"><strong data-start=\"309\" data-end=\"349\">1. Basic Terminology in Graph Theory<\/strong><\/h3>\n<p class=\"\" data-start=\"350\" data-end=\"393\">A <strong data-start=\"352\" data-end=\"361\">graph<\/strong> <span class=\"katex\"><span class=\"katex-mathml\">G=(V,E)G = (V, E)<\/span><span class=\"katex-html\" aria-hidden=\"true\"><span class=\"base\"><span class=\"mord mathnormal\">G<\/span><span class=\"mrel\">=<\/span><\/span><span class=\"base\"><span class=\"mopen\">(<\/span><span class=\"mord mathnormal\">V<\/span><span class=\"mpunct\">,<\/span><span class=\"mord mathnormal\">E<\/span><span class=\"mclose\">)<\/span><\/span><\/span><\/span> consists of:<\/p>\n<ul data-start=\"394\" data-end=\"509\">\n<li class=\"\" data-start=\"394\" data-end=\"443\">\n<p class=\"\" data-start=\"396\" data-end=\"443\"><strong data-start=\"396\" data-end=\"421\">V (Vertices or Nodes)<\/strong>: The set of points.<\/p>\n<\/li>\n<li class=\"\" data-start=\"444\" data-end=\"509\">\n<p class=\"\" data-start=\"446\" data-end=\"509\"><strong data-start=\"446\" data-end=\"468\">E (Edges or Links)<\/strong>: The set of connections between nodes.<\/p>\n<\/li>\n<\/ul>\n<h3 data-start=\"516\" data-end=\"557\"><strong data-start=\"519\" data-end=\"557\">2. Parallel Edges (Multiple Edges)<\/strong><\/h3>\n<p class=\"\" data-start=\"558\" data-end=\"793\"><strong data-start=\"561\" data-end=\"575\">Definition<\/strong>: Parallel edges (also called <strong data-start=\"605\" data-end=\"623\">multiple edges<\/strong>) occur when <strong data-start=\"636\" data-end=\"691\">two or more edges connect the same pair of vertices<\/strong>.<br data-start=\"692\" data-end=\"695\" \/><strong data-start=\"697\" data-end=\"708\">Example<\/strong>: In a railway network, two different train routes may connect the same two cities.<\/p>\n<h4 class=\"\" data-start=\"795\" data-end=\"825\"><strong data-start=\"800\" data-end=\"824\">Graph Representation<\/strong>:<\/h4>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre\">(A) <span class=\"hljs-comment\">--- (B)<\/span><br \/>\n(A) === (B)   &lt;<span class=\"hljs-comment\">-- Parallel edges<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<p class=\"\" data-start=\"879\" data-end=\"973\"><strong data-start=\"881\" data-end=\"896\">Allowed in:<\/strong> <strong data-start=\"897\" data-end=\"929\">Multigraphs and Pseudographs<\/strong><br data-start=\"929\" data-end=\"932\" \/><strong data-start=\"934\" data-end=\"953\">Not allowed in:<\/strong> <strong data-start=\"954\" data-end=\"971\">Simple Graphs<\/strong><\/p>\n<h3 data-start=\"980\" data-end=\"999\"><strong data-start=\"983\" data-end=\"999\">3. Self-Loop<\/strong><\/h3>\n<p class=\"\" data-start=\"1000\" data-end=\"1193\"><strong data-start=\"1003\" data-end=\"1017\">Definition<\/strong>: A <strong data-start=\"1021\" data-end=\"1034\">self-loop<\/strong> is an edge that connects a vertex to itself.<br data-start=\"1079\" data-end=\"1082\" \/><strong data-start=\"1084\" data-end=\"1095\">Example<\/strong>: In a <strong data-start=\"1102\" data-end=\"1120\">social network<\/strong>, a person <strong data-start=\"1131\" data-end=\"1156\">liking their own post<\/strong> can be represented as a self-loop.<\/p>\n<h4 class=\"\" data-start=\"1195\" data-end=\"1225\"><strong data-start=\"1200\" data-end=\"1224\">Graph Representation<\/strong>:<\/h4>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre\">(A) <span class=\"hljs-comment\">---- (B)<\/span><br \/>\n|        |<br \/>\n(A)       (C)<br \/>\n<\/code><\/div>\n<\/div>\n<p class=\"\" data-start=\"1273\" data-end=\"1294\">(A has a self-loop)<\/p>\n<p class=\"\" data-start=\"1296\" data-end=\"1390\"><strong data-start=\"1298\" data-end=\"1313\">Allowed in:<\/strong> <strong data-start=\"1314\" data-end=\"1330\">Pseudographs<\/strong><br data-start=\"1330\" data-end=\"1333\" \/><strong data-start=\"1335\" data-end=\"1354\">Not allowed in:<\/strong> <strong data-start=\"1355\" data-end=\"1388\">Simple Graphs and Multigraphs<\/strong><\/p>\n<h3 data-start=\"1397\" data-end=\"1419\"><strong data-start=\"1400\" data-end=\"1419\">4. Simple Graph<\/strong><\/h3>\n<p class=\"\" data-start=\"1420\" data-end=\"1528\"><strong data-start=\"1423\" data-end=\"1437\">Definition<\/strong>: A <strong data-start=\"1441\" data-end=\"1457\">simple graph<\/strong> is a graph that <strong data-start=\"1474\" data-end=\"1491\">does not have<\/strong>:<br data-start=\"1492\" data-end=\"1495\" \/>\u00a0Parallel edges<br data-start=\"1511\" data-end=\"1514\" \/>\u00a0Self-loops<\/p>\n<p class=\"\" data-start=\"1530\" data-end=\"1639\"><strong data-start=\"1532\" data-end=\"1543\">Example<\/strong>: A <strong data-start=\"1547\" data-end=\"1569\">friendship network<\/strong>, where each edge represents a unique connection between two people.<\/p>\n<h4 class=\"\" data-start=\"1641\" data-end=\"1671\"><strong data-start=\"1646\" data-end=\"1670\">Graph Representation<\/strong>:<\/h4>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre\">(A) <span class=\"hljs-comment\">---- (B)<\/span><br \/>\n|        |<br \/>\n(C) <span class=\"hljs-comment\">---- (D)<\/span><br \/>\n<\/code><\/div>\n<\/div>\n<p class=\"\" data-start=\"1718\" data-end=\"1742\"><strong data-start=\"1720\" data-end=\"1739\">Characteristics<\/strong>:<\/p>\n<ul data-start=\"1743\" data-end=\"1843\">\n<li class=\"\" data-start=\"1743\" data-end=\"1792\">\n<p class=\"\" data-start=\"1745\" data-end=\"1792\">Each edge connects <strong data-start=\"1764\" data-end=\"1789\">two distinct vertices<\/strong>.<\/p>\n<\/li>\n<li class=\"\" data-start=\"1793\" data-end=\"1843\">\n<p class=\"\" data-start=\"1795\" data-end=\"1843\"><strong data-start=\"1795\" data-end=\"1815\">At most one edge<\/strong> between any two vertices.<\/p>\n<\/li>\n<\/ul>\n<h3 data-start=\"1850\" data-end=\"1870\"><strong data-start=\"1853\" data-end=\"1870\">5. Multigraph<\/strong><\/h3>\n<p class=\"\" data-start=\"1871\" data-end=\"2082\"><strong data-start=\"1874\" data-end=\"1888\">Definition<\/strong>: A <strong data-start=\"1892\" data-end=\"1906\">multigraph<\/strong> is a graph that <strong data-start=\"1923\" data-end=\"1948\">allows parallel edges<\/strong> but <strong data-start=\"1953\" data-end=\"1982\">does not allow self-loops<\/strong>.<br data-start=\"1983\" data-end=\"1986\" \/><strong data-start=\"1988\" data-end=\"1999\">Example<\/strong>: A <strong data-start=\"2003\" data-end=\"2019\">road network<\/strong> where two different roads exist between the same two cities.<\/p>\n<h4 class=\"\" data-start=\"2084\" data-end=\"2114\"><strong data-start=\"2089\" data-end=\"2113\">Graph Representation<\/strong>:<\/h4>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre\">(A) <span class=\"hljs-comment\">=== (B)<\/span><br \/>\n(A) ---- (C)<br \/>\n<\/code><\/div>\n<\/div>\n<p class=\"\" data-start=\"2148\" data-end=\"2211\"><strong data-start=\"2150\" data-end=\"2161\">Allowed<\/strong>: Parallel edges<br data-start=\"2177\" data-end=\"2180\" \/><strong data-start=\"2182\" data-end=\"2197\">Not allowed<\/strong>: Self-loops<\/p>\n<h3 data-start=\"2218\" data-end=\"2239\"><strong data-start=\"2221\" data-end=\"2239\">6. Pseudograph<\/strong><\/h3>\n<p class=\"\" data-start=\"2240\" data-end=\"2521\"><strong data-start=\"2243\" data-end=\"2257\">Definition<\/strong>: A <strong data-start=\"2261\" data-end=\"2276\">pseudograph<\/strong> is a <strong data-start=\"2282\" data-end=\"2303\">generalized graph<\/strong> that allows both <strong data-start=\"2321\" data-end=\"2354\">parallel edges and self-loops<\/strong>.<br data-start=\"2355\" data-end=\"2358\" \/><strong data-start=\"2360\" data-end=\"2371\">Example<\/strong>: A <strong data-start=\"2375\" data-end=\"2395\">computer network<\/strong> where a server may have multiple direct connections to the same device, and it may also loop back to itself for redundancy.<\/p>\n<h4 class=\"\" data-start=\"2523\" data-end=\"2553\"><strong data-start=\"2528\" data-end=\"2552\">Graph Representation<\/strong>:<\/h4>\n<div class=\"contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary\">\n<div class=\"overflow-y-auto p-4\" dir=\"ltr\"><code class=\"!whitespace-pre\">(A) <span class=\"hljs-comment\">=== (B)<\/span><br \/>\n|       |<br \/>\n(A) ---- (C)<br \/>\n<\/code><\/div>\n<\/div>\n<p class=\"\" data-start=\"2598\" data-end=\"2657\"><strong data-start=\"2600\" data-end=\"2611\">Allowed<\/strong>: Parallel edges<br data-start=\"2627\" data-end=\"2630\" \/><strong data-start=\"2632\" data-end=\"2643\">Allowed<\/strong>: Self-loops<\/p>\n<h3 data-start=\"2664\" data-end=\"2690\"><strong data-start=\"2667\" data-end=\"2690\">7. Comparison Table<\/strong><\/h3>\n<div class=\"overflow-x-auto contain-inline-size\">\n<table data-start=\"2691\" data-end=\"2954\">\n<thead data-start=\"2691\" data-end=\"2745\">\n<tr data-start=\"2691\" data-end=\"2745\">\n<th data-start=\"2691\" data-end=\"2704\">Graph Type<\/th>\n<th data-start=\"2704\" data-end=\"2717\">Self-Loops<\/th>\n<th data-start=\"2717\" data-end=\"2734\">Parallel Edges<\/th>\n<th data-start=\"2734\" data-end=\"2745\">Example<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"2799\" data-end=\"2954\">\n<tr data-start=\"2799\" data-end=\"2850\">\n<td><strong data-start=\"2801\" data-end=\"2817\">Simple Graph<\/strong><\/td>\n<td>\u00a0No<\/td>\n<td>\u00a0No<\/td>\n<td>Social Network<\/td>\n<\/tr>\n<tr data-start=\"2851\" data-end=\"2899\">\n<td><strong data-start=\"2853\" data-end=\"2867\">Multigraph<\/strong><\/td>\n<td>\u00a0No<\/td>\n<td>\u00a0Yes<\/td>\n<td>Road Network<\/td>\n<\/tr>\n<tr data-start=\"2900\" data-end=\"2954\">\n<td><strong data-start=\"2902\" data-end=\"2917\">Pseudograph<\/strong><\/td>\n<td>\u00a0Yes<\/td>\n<td>\u00a0Yes<\/td>\n<td>Computer Network<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h3 data-start=\"2961\" data-end=\"3003\"><strong data-start=\"2964\" data-end=\"3003\">8. Applications in Computer Science<\/strong><\/h3>\n<p class=\"\" data-start=\"3004\" data-end=\"3228\"><strong data-start=\"3007\" data-end=\"3024\">Simple Graphs<\/strong> \u2192 <strong data-start=\"3027\" data-end=\"3069\">Social networks, communication systems<\/strong><br data-start=\"3069\" data-end=\"3072\" \/><strong data-start=\"3075\" data-end=\"3090\">Multigraphs<\/strong> \u2192 <strong data-start=\"3093\" data-end=\"3147\">Transport networks (railway, road, airline routes)<\/strong><br data-start=\"3147\" data-end=\"3150\" \/><strong data-start=\"3153\" data-end=\"3169\">Pseudographs<\/strong> \u2192 <strong data-start=\"3172\" data-end=\"3226\">Computer networks, self-feedback loops in circuits<\/strong><\/p>\n<h3 data-start=\"3235\" data-end=\"3252\"><strong data-start=\"3238\" data-end=\"3252\">Conclusion<\/strong><\/h3>\n<ul data-start=\"3253\" data-end=\"3545\">\n<li class=\"\" data-start=\"3253\" data-end=\"3316\">\n<p class=\"\" data-start=\"3255\" data-end=\"3316\"><strong data-start=\"3255\" data-end=\"3273\">Parallel Edges<\/strong>: Multiple connections between two nodes.<\/p>\n<\/li>\n<li class=\"\" data-start=\"3317\" data-end=\"3363\">\n<p class=\"\" data-start=\"3319\" data-end=\"3363\"><strong data-start=\"3319\" data-end=\"3332\">Self-Loop<\/strong>: A node connected to itself.<\/p>\n<\/li>\n<li class=\"\" data-start=\"3364\" data-end=\"3419\">\n<p class=\"\" data-start=\"3366\" data-end=\"3419\"><strong data-start=\"3366\" data-end=\"3382\">Simple Graph<\/strong>: No self-loops, no parallel edges.<\/p>\n<\/li>\n<li class=\"\" data-start=\"3420\" data-end=\"3481\">\n<p class=\"\" data-start=\"3422\" data-end=\"3481\"><strong data-start=\"3422\" data-end=\"3436\">Multigraph<\/strong>: Allows parallel edges, but no self-loops.<\/p>\n<\/li>\n<li class=\"\" data-start=\"3482\" data-end=\"3545\">\n<p class=\"\" data-start=\"3484\" data-end=\"3545\"><strong data-start=\"3484\" data-end=\"3499\">Pseudograph<\/strong>: Allows both parallel edges and self-loops.<\/p>\n<\/li>\n<\/ul>\n<p class=\"\" data-start=\"3547\" data-end=\"3627\">Would you like <strong data-start=\"3562\" data-end=\"3584\">practice questions<\/strong> or <strong data-start=\"3588\" data-end=\"3603\">Python code<\/strong> to implement graphs?<\/p>\n<h3 data-start=\"3547\" data-end=\"3627\"><a href=\"https:\/\/ccgdc.ac.in\/doc\/165587144362b297d3d686d.pdf\" target=\"_blank\" rel=\"noopener\">Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph.<\/a><\/h3>\n<div class=\"kb0PBd A9Y9g jGGQ5e\" data-snf=\"x5WNvb\" data-snhf=\"0\">\n<div class=\"yuRUbf\">\n<div class=\"b8lM7\">\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.math.fsu.edu\/~pkirby\/mad2104\/SlideShow\/s6_1.pdf\" target=\"_blank\" rel=\"noopener\">Introduction to Graph Theory<\/a><\/h3>\n<div class=\"kb0PBd A9Y9g jGGQ5e\" data-snf=\"x5WNvb\" data-snhf=\"0\">\n<div>\n<div>\n<div class=\"yuRUbf\">\n<div class=\"b8lM7\">\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.kwcsangli.in\/uploads\/Graph-theory.pdf\" target=\"_blank\" rel=\"noopener\">Graph theory: Introduction<\/a><\/h3>\n<div class=\"kb0PBd A9Y9g jGGQ5e\" data-snf=\"x5WNvb\" data-snhf=\"0\">\n<div>\n<div>\n<div class=\"yuRUbf\">\n<div class=\"b8lM7\">\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/tita.lecturer.pens.ac.id\/ASD\/M14_Graph\/Graph%20Types%20and%20Applications%20-%20GeeksforGeeks.pdf\" target=\"_blank\" rel=\"noopener\">Graph Types and Applications<\/a><\/h3>\n<div class=\"kb0PBd A9Y9g jGGQ5e\" data-snf=\"x5WNvb\" data-snhf=\"0\">\n<div>\n<div>\n<div class=\"yuRUbf\">\n<div class=\"b8lM7\">\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/www.isical.ac.in\/~sush\/Discrete-maths-2014\/graphtheory.pdf\" target=\"_blank\" rel=\"noopener\">Graph Theory<\/a><\/h3>\n<p data-start=\"0\" data-end=\"197\">Here\u2019s a clear explanation for <strong data-start=\"31\" data-end=\"98\">Day 07 Part 02: Discrete Mathematics &#8211; Graph Types and Concepts<\/strong> like <strong data-start=\"104\" data-end=\"122\">parallel edges<\/strong>, <strong data-start=\"124\" data-end=\"138\">self-loops<\/strong>, <strong data-start=\"140\" data-end=\"157\">simple graphs<\/strong>, <strong data-start=\"159\" data-end=\"174\">multigraphs<\/strong>, and <strong data-start=\"180\" data-end=\"196\">pseudographs<\/strong>.<\/p>\n<hr data-start=\"199\" data-end=\"202\" \/>\n<h3 data-start=\"204\" data-end=\"266\">\ud83d\udcd8 <strong data-start=\"211\" data-end=\"266\">Key Concepts in Graph Theory (Discrete Mathematics)<\/strong><\/h3>\n<hr data-start=\"268\" data-end=\"271\" \/>\n<h3 data-start=\"273\" data-end=\"297\">1. <strong data-start=\"280\" data-end=\"297\">Parallel Edge<\/strong><\/h3>\n<ul data-start=\"298\" data-end=\"567\">\n<li data-start=\"298\" data-end=\"330\">\n<p data-start=\"300\" data-end=\"330\">Also called: <strong data-start=\"313\" data-end=\"330\">Multiple edge<\/strong><\/p>\n<\/li>\n<li data-start=\"331\" data-end=\"410\">\n<p data-start=\"333\" data-end=\"410\"><strong data-start=\"333\" data-end=\"347\">Definition<\/strong>: Two or more edges that connect the <strong data-start=\"384\" data-end=\"409\">same pair of vertices<\/strong>.<\/p>\n<\/li>\n<li data-start=\"411\" data-end=\"475\">\n<p data-start=\"413\" data-end=\"475\"><strong data-start=\"413\" data-end=\"424\">Example<\/strong>: Edges (A, B), (A, B) \u2192 two edges between A and B.<\/p>\n<\/li>\n<li data-start=\"476\" data-end=\"529\">\n<p data-start=\"478\" data-end=\"529\"><strong data-start=\"478\" data-end=\"491\">Occurs in<\/strong>: <strong data-start=\"493\" data-end=\"508\">Multigraphs<\/strong> and <strong data-start=\"513\" data-end=\"529\">Pseudographs<\/strong><\/p>\n<\/li>\n<li data-start=\"530\" data-end=\"567\">\n<p data-start=\"532\" data-end=\"567\">\u274c Not allowed in a <strong data-start=\"551\" data-end=\"567\">simple graph<\/strong><\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"569\" data-end=\"572\" \/>\n<h3 data-start=\"574\" data-end=\"594\">2. <strong data-start=\"581\" data-end=\"594\">Self-Loop<\/strong><\/h3>\n<ul data-start=\"595\" data-end=\"771\">\n<li data-start=\"595\" data-end=\"658\">\n<p data-start=\"597\" data-end=\"658\"><strong data-start=\"597\" data-end=\"611\">Definition<\/strong>: An edge that <strong data-start=\"626\" data-end=\"657\">connects a vertex to itself<\/strong>.<\/p>\n<\/li>\n<li data-start=\"659\" data-end=\"681\">\n<p data-start=\"661\" data-end=\"681\"><strong data-start=\"661\" data-end=\"673\">Notation<\/strong>: (A, A)<\/p>\n<\/li>\n<li data-start=\"682\" data-end=\"715\">\n<p data-start=\"684\" data-end=\"715\"><strong data-start=\"684\" data-end=\"697\">Occurs in<\/strong>: <strong data-start=\"699\" data-end=\"715\">Pseudographs<\/strong><\/p>\n<\/li>\n<li data-start=\"716\" data-end=\"771\">\n<p data-start=\"718\" data-end=\"771\">\u274c Not allowed in <strong data-start=\"735\" data-end=\"752\">simple graphs<\/strong> or <strong data-start=\"756\" data-end=\"771\">multigraphs<\/strong><\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"773\" data-end=\"776\" \/>\n<h3 data-start=\"778\" data-end=\"801\">3. <strong data-start=\"785\" data-end=\"801\">Simple Graph<\/strong><\/h3>\n<ul data-start=\"802\" data-end=\"1027\">\n<li data-start=\"802\" data-end=\"873\">\n<p data-start=\"804\" data-end=\"833\"><strong data-start=\"804\" data-end=\"818\">Definition<\/strong>: A graph with:<\/p>\n<ul data-start=\"836\" data-end=\"873\">\n<li data-start=\"836\" data-end=\"855\">\n<p data-start=\"838\" data-end=\"855\">No parallel edges<\/p>\n<\/li>\n<li data-start=\"858\" data-end=\"873\">\n<p data-start=\"860\" data-end=\"873\">No self-loops<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"874\" data-end=\"937\">\n<p data-start=\"876\" data-end=\"937\"><strong data-start=\"876\" data-end=\"885\">Edges<\/strong>: At most one edge between any two distinct vertices<\/p>\n<\/li>\n<li data-start=\"938\" data-end=\"975\">\n<p data-start=\"940\" data-end=\"975\">\u2705 Most common in basic graph theory<\/p>\n<\/li>\n<li data-start=\"976\" data-end=\"1027\">\n<p data-start=\"978\" data-end=\"1027\">\ud83d\udd17 Edge = unordered pair of <strong data-start=\"1006\" data-end=\"1018\">distinct<\/strong> vertices<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1029\" data-end=\"1032\" \/>\n<h3 data-start=\"1034\" data-end=\"1055\">4. <strong data-start=\"1041\" data-end=\"1055\">Multigraph<\/strong><\/h3>\n<ul data-start=\"1056\" data-end=\"1233\">\n<li data-start=\"1056\" data-end=\"1153\">\n<p data-start=\"1058\" data-end=\"1087\"><strong data-start=\"1058\" data-end=\"1072\">Definition<\/strong>: A graph that:<\/p>\n<ul data-start=\"1090\" data-end=\"1153\">\n<li data-start=\"1090\" data-end=\"1117\">\n<p data-start=\"1092\" data-end=\"1117\"><strong data-start=\"1092\" data-end=\"1117\">Allows parallel edges<\/strong><\/p>\n<\/li>\n<li data-start=\"1120\" data-end=\"1153\">\n<p data-start=\"1122\" data-end=\"1153\">\u274c Does <strong data-start=\"1129\" data-end=\"1136\">not<\/strong> allow self-loops<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"1154\" data-end=\"1233\">\n<p data-start=\"1156\" data-end=\"1233\">Useful to represent <strong data-start=\"1176\" data-end=\"1202\">multiple relationships<\/strong> between the same pair of nodes<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1235\" data-end=\"1238\" \/>\n<h3 data-start=\"1240\" data-end=\"1262\">5. <strong data-start=\"1247\" data-end=\"1262\">Pseudograph<\/strong><\/h3>\n<ul data-start=\"1263\" data-end=\"1384\">\n<li data-start=\"1263\" data-end=\"1348\">\n<p data-start=\"1265\" data-end=\"1294\"><strong data-start=\"1265\" data-end=\"1279\">Definition<\/strong>: A graph that:<\/p>\n<ul data-start=\"1297\" data-end=\"1348\">\n<li data-start=\"1297\" data-end=\"1348\">\n<p data-start=\"1299\" data-end=\"1348\"><strong data-start=\"1299\" data-end=\"1314\">Allows both<\/strong> parallel edges <strong data-start=\"1330\" data-end=\"1337\">and<\/strong> self-loops<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li data-start=\"1349\" data-end=\"1384\">\n<p data-start=\"1351\" data-end=\"1384\">\ud83e\udde0 More generalized form of graph<\/p>\n<\/li>\n<\/ul>\n<hr data-start=\"1386\" data-end=\"1389\" \/>\n<h3 data-start=\"1391\" data-end=\"1415\">\ud83d\udcca <strong data-start=\"1398\" data-end=\"1415\">Summary Table<\/strong><\/h3>\n<div class=\"_tableContainer_16hzy_1\">\n<div class=\"_tableWrapper_16hzy_14 group flex w-fit flex-col-reverse\">\n<table class=\"w-fit min-w-(--thread-content-width)\" data-start=\"1417\" data-end=\"1671\">\n<thead data-start=\"1417\" data-end=\"1465\">\n<tr data-start=\"1417\" data-end=\"1465\">\n<th data-start=\"1417\" data-end=\"1434\" data-col-size=\"sm\">Graph Type<\/th>\n<th data-start=\"1434\" data-end=\"1451\" data-col-size=\"sm\">Parallel Edges<\/th>\n<th data-start=\"1451\" data-end=\"1465\" data-col-size=\"sm\">Self-Loops<\/th>\n<\/tr>\n<\/thead>\n<tbody data-start=\"1516\" data-end=\"1671\">\n<tr data-start=\"1516\" data-end=\"1567\">\n<td data-start=\"1516\" data-end=\"1533\" data-col-size=\"sm\">Simple Graph<\/td>\n<td data-col-size=\"sm\" data-start=\"1533\" data-end=\"1550\">\u274c Not allowed<\/td>\n<td data-col-size=\"sm\" data-start=\"1550\" data-end=\"1567\">\u274c Not allowed<\/td>\n<\/tr>\n<tr data-start=\"1568\" data-end=\"1619\">\n<td data-start=\"1568\" data-end=\"1585\" data-col-size=\"sm\">Multigraph<\/td>\n<td data-col-size=\"sm\" data-start=\"1585\" data-end=\"1602\">\u2705 Allowed<\/td>\n<td data-col-size=\"sm\" data-start=\"1602\" data-end=\"1619\">\u274c Not allowed<\/td>\n<\/tr>\n<tr data-start=\"1620\" data-end=\"1671\">\n<td data-start=\"1620\" data-end=\"1637\" data-col-size=\"sm\">Pseudograph<\/td>\n<td data-col-size=\"sm\" data-start=\"1637\" data-end=\"1654\">\u2705 Allowed<\/td>\n<td data-col-size=\"sm\" data-start=\"1654\" data-end=\"1671\">\u2705 Allowed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<div class=\"sticky end-(--thread-content-margin) h-0 self-end select-none\">\n<div class=\"absolute end-0 flex items-end\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n<hr data-start=\"1673\" data-end=\"1676\" \/>\n<h3 data-start=\"1678\" data-end=\"1693\">\ud83e\udde0 Example:<\/h3>\n<p data-start=\"1695\" data-end=\"1723\">Let\u2019s consider a graph with:<\/p>\n<ul data-start=\"1724\" data-end=\"1783\">\n<li data-start=\"1724\" data-end=\"1743\">\n<p data-start=\"1726\" data-end=\"1743\">Vertices: A, B, C<\/p>\n<\/li>\n<li data-start=\"1744\" data-end=\"1783\">\n<p data-start=\"1746\" data-end=\"1783\">Edges: (A, B), (A, B), (B, C), (C, C)<\/p>\n<\/li>\n<\/ul>\n<p data-start=\"1785\" data-end=\"1803\">\ud83d\udc49 This graph has:<\/p>\n<ul data-start=\"1804\" data-end=\"1868\">\n<li data-start=\"1804\" data-end=\"1841\">\n<p data-start=\"1806\" data-end=\"1841\">Parallel edges \u2192 <strong data-start=\"1823\" data-end=\"1841\">(A, B), (A, B)<\/strong><\/p>\n<\/li>\n<li data-start=\"1842\" data-end=\"1868\">\n<p data-start=\"1844\" data-end=\"1868\">A self-loop \u2192 <strong data-start=\"1858\" data-end=\"1868\">(C, C)<\/strong><\/p>\n<\/li>\n<\/ul>\n<p data-start=\"1870\" data-end=\"1896\">So it&#8217;s a <strong data-start=\"1880\" data-end=\"1895\">Pseudograph<\/strong>.<\/p>\n<hr data-start=\"1898\" data-end=\"1901\" \/>\n<p data-start=\"1903\" data-end=\"1974\" data-is-last-node=\"\" data-is-only-node=\"\">Let me know if you want a diagram or examples coded in Python\/Graphviz.<\/p>\n<h3 data-start=\"1903\" data-end=\"1974\"><a href=\"https:\/\/www.kharagpurcollege.ac.in\/studyMaterial\/215849Study%20materials_1_4th%20sem_MTMG_SEC2T%20by%20Kousik%20Bhattacharya.pdf\" target=\"_blank\" rel=\"noopener\">Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph.<\/a><\/h3>\n<h3 class=\"LC20lb MBeuO DKV0Md\"><a href=\"https:\/\/users.pja.edu.pl\/~msyd\/mad-lectures\/graphs.pdf\" target=\"_blank\" rel=\"noopener\">Discrete Mathematics &#8211; Graphs<\/a><\/h3>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Day 07Part 02- Discrete- Parallel edge and Self loop , Simple graph , Multi graph , Pseudo graph. [fvplayer id=&#8221;171&#8243;] Parallel Edge, Self Loop, Simple Graph, Multigraph, and Pseudograph in Discrete Mathematics Graphs are fundamental structures in Discrete Mathematics and Computer Science, used to model relationships between objects. Let&#8217;s explore different types of graphs and [&hellip;]<\/p>\n","protected":false},"author":71,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[76],"tags":[],"class_list":["post-2918","post","type-post","status-publish","format-standard","hentry","category-discrete-mathematics"],"_links":{"self":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/2918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/users\/71"}],"replies":[{"embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/comments?post=2918"}],"version-history":[{"count":0,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/posts\/2918\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/media?parent=2918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/categories?post=2918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.reilsolar.com\/pdf\/wp-json\/wp\/v2\/tags?post=2918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}