[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-782750-105":3,"detail-sidebar-cat-0-en-105":79,"doc-detail-782750-en":129,"doc-similar-782750":161},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":72,"head_meta":74,"extra_data":76,"updated_unix":78},105,"en","unit5-c2d38701924540968ffaeb66de9d2daa","unit5","","Graph theory represents connections among objects, illustrated by cities linked by roads, railways, and air routes. The material defines vertices and edges, distinguishes directed, undirected, and weighted edges, and explains degree, indegree, and outdegree. It outlines complete, regular, cyclic, acyclic, and simple graphs, plus adjacency, incidence, parallel edges, and self-loops. Walks, paths, circuits, subgraphs, and connectivity are defined. Euler’s Königsberg bridge problem illustrates traversing each edge exactly once; BFS and DFS are named as elementary graph operations.",{"@graph":14,"@context":71},[15,34,54],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/unit5-c2d38701924540968ffaeb66de9d2daa/782750/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":48,"encodingFormat":47,"isAccessibleForFree":49,"interactionStatistic":50},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/unit5-c2d38701924540968ffaeb66de9d2daa/782750.png","ImageObject",300,407,{"name":42,"@type":43},"Marglet","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-12-03",true,{"@type":51,"interactionType":52,"userInteractionCount":26},"InteractionCounter",{"@type":53},"ViewAction",{"@type":55,"mainEntity":56},"FAQPage",[57,63,67],{"name":58,"@type":59,"acceptedAnswer":60},"How is a graph defined?","Question",{"text":61,"@type":62},"A graph is a collection of vertices and edges connecting them, represented as G = (V, E).","Answer",{"name":64,"@type":59,"acceptedAnswer":65},"What distinguishes directed, undirected, and weighted edges?",{"text":66,"@type":62},"Undirected edges are bidirectional, directed edges have a single direction, and weighted edges carry an assigned cost or value.",{"name":68,"@type":59,"acceptedAnswer":69},"What condition does the document give for an Eulerian walk?",{"text":70,"@type":62},"It states that a walk traversing each edge exactly once and returning to its starting vertex exists if and only if every vertex has even degree.","https://schema.org",{"og:url":32,"og:type":73,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":75,"canonical":32},"index,follow",{"doc_id":77,"site_id":7},782750,1796313791,{"code":4,"msg":80,"data":81},"success",[82,86,90,94,99,103,108,113,118,121,125],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":83,"show_sort_weight":84,"slug":85},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":87,"show_sort_weight":88,"slug":89},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":91,"show_sort_weight":92,"slug":93},"Exam",70,"exam",{"id":95,"doc_module":4,"doc_module_name":25,"category_name":96,"show_sort_weight":97,"slug":98},5,"Comic",60,"comic",{"id":100,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":101,"slug":102},6,50,"technology",{"id":104,"doc_module":4,"doc_module_name":25,"category_name":105,"show_sort_weight":106,"slug":107},7,"Healthcare",40,"healthcare",{"id":109,"doc_module":4,"doc_module_name":25,"category_name":110,"show_sort_weight":111,"slug":112},8,"Research & Report",30,"research-report",{"id":114,"doc_module":4,"doc_module_name":25,"category_name":115,"show_sort_weight":116,"slug":117},9,"Religion & Spirituality",20,"religion-spirituality",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":119,"show_sort_weight":116,"slug":120},"World Cup","world-cup",{"id":122,"doc_module":4,"doc_module_name":25,"category_name":123,"show_sort_weight":122,"slug":124},10,"Lifestyle","lifestyle",{"id":126,"doc_module":4,"doc_module_name":25,"category_name":127,"show_sort_weight":95,"slug":128},19,"General","general",{"code":4,"msg":80,"data":130},{"doc_id":77,"user_id":131,"nickname":42,"user_avatar":132,"doc_module":4,"category_id":100,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":26,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":138,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":78,"read_time":143,"preview_page_count":33,"preview_urls":144},2336477982702,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","UNIT 5 -GRAPHS  \nThe Graph ADT Introduction Definition  \nGraph representation  \nElementary graph operations BFS, DFS  \nIntroduction to Graphs  \nGraph is a non linear data structure; A map is a well-known example of a graph. In a map various connections are made between the cities. The cities are connected via roads, railway lines and aerial network. We can assume that the graph is the interconnection of cities by roads. Euler used graph theory to solve Seven Bridges ofKönigsberg problem. Is there a possible way to traverse every bridge exactly once – Euler Tour  \nFigure: Section of the river Pregal in Koenigsberg and Euler's graph.  \nDefining the degree of a vertex to be the number of edges incident to it, Euler showed that there is a walk starting at any vertex, going through each edge exactly once and terminating at the start vertex iff the degree of each, vertex is even. A walk which does this is called Eulerian. There is no Eulerian walk for the Koenigsberg bridge problem as all four vertices are of odd degree.  \nA graph contains a set of points known as nodes (or vertices) and set of links known as edges (or Arcs) which connects the vertices.  \nA graph is defined as Graph is a collection of vertices and arcs which connects vertices in the graph. A graph G is represented as G = ( V , E ), where V is set of vertices and E is set of edges.  \nExample: graph G can be defined as G = ( V , E ) Where V = {A,B,C,D,E} and  \nE = {(A,B),(A,C)(A,D),(B,D),(C,D),(B,E),(E,D)} . This is a graph with 5 vertices and 6 edges.  \nGraph Terminology  \n1.Vertex : An individual data element of a graph is called as Vertex. Vertex is also known as node. In above example graph, A, B, C, D & E are known as vertices.  \n2.Edge : An edge is a connecting link between two vertices. Edge is also known as Arc. An edge is represented as (starting Vertex, ending Vertex) .  \nIn above graph, the link between vertices A and B is represented as (A,B) .  \nEdges are three types:  \n1.Undirected Edge-An undirected edge is a bidirectional edge. If there is an undirected edge between vertices A and B then edge (A , B) is equal to edge (B , A) .  \n2.Directed Edge-A directed edge is a unidirectional edge. If there is a directed edge between vertices A and B then edge (A , B) is not equal to edge (B , A) .  \n3.Weighted Edge-A weighted edge is an edge with cost on it.  \nTypes of Graphs  \n1.Undirected Graph  \nA graph with only undirected edges is said to be undirected graph.  \n2.Directed Graph  \nA graph with only directed edges is said to be directed graph.  \n3.Complete Graph  \nA graph in which any V node is adjacent to all other nodes present in the graph is known as a complete graph. An undirected graph contains the edges that are equal to edges = n(n-1)/2 where n is the number of vertices present in the graph. The following figure shows a complete graph.  \n4.Regular Graph  \nRegular graph is the graph in which nodes are adjacent to each other, i.e., each node is accessible from any other node.  \n5.Cycle Graph  \nA graph having cycle is called cycle graph. In this case the first and last nodes are the same. A closed simple pathis a cycle.  \n6.Acyclic Graph  \nA graph without cycle is called acyclic graphs.  \n7. Weighted Graph  \nA graph is said to be weighted if there are some non negative value assigned to each edges ofthe graph. The value is equal to the length between two vertices. Weighted graph is also called a network.  \nOutgoing Edge  \nA directed edge is said to be outgoing edge on its orign vertex.  \nIncoming Edge  \nA directed edge is said to be incoming edge on its destination vertex.  \nDegree  \nTotal number of edges connected to a vertex is said to be degree of that vertex.  \nIndegree  \nTotal number of incoming edges connected to a vertex is said to be indegree of that vertex.  \nOutdegree  \nTotal number of outgoing edges connected to a vertex is said to be outdegree of that vertex.  \nParallel edges or Multiple edges  \nIf there are two undirected edges to have the sam","cbCaiq0FPYQZk7IZ","https://ap.wps.com/l/cbCaiq0FPYQZk7IZ","pdf",1407143,14,"English","# Introduction to Graphs\n# Graph Terminology\n# Types of Graphs\n# Graph Properties and Relationships\n# Walks, Paths, and Circuits\n# Subgraphs and Connectivity","[{\"question\":\"How is a graph defined?\",\"answer\":\"A graph is a collection of vertices and edges connecting them, represented as G = (V, E).\"},{\"question\":\"What distinguishes directed, undirected, and weighted edges?\",\"answer\":\"Undirected edges are bidirectional, directed edges have a single direction, and weighted edges carry an assigned cost or value.\"},{\"question\":\"What condition does the document give for an Eulerian walk?\",\"answer\":\"It states that a walk traversing each edge exactly once and returning to its starting vertex exists if and only if every vertex has even degree.\"}]","unit5 | PDF",35,[145,149,153,157],{"page_no":22,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/79d952827d05f68a284eb7b9331417e3.webp",983,1415,{"page_no":26,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/309902e6b457280f9f9e544659da1f5c.webp",982,1414,{"page_no":30,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/358b30d996cad728a3e94c99d0c7ca29.webp",981,1412,{"page_no":33,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-03/75596f179177c2e4b5450326c960df2b.webp",980,1411,{"list":162,"token":11},[163,169,175,181,187,193,199,205,212,218],{"doc_id":164,"doc_title":165,"file_type":136,"home_preview_img_url":166,"slug":167,"view_count":26,"category_name":29,"create_tm":168},782747,"Graphs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230055130321/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=def8mbBeJNe8d4Vq8lJ82fY70c8%3D","graphs",1796313786,{"doc_id":170,"doc_title":171,"file_type":136,"home_preview_img_url":172,"slug":173,"view_count":26,"category_name":29,"create_tm":174},685751,"Graph Algorithms - Graph Basics - Notion of Graphs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999690613/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=CQU0uSH7hWA0BnXjt4QoJpls2sE%3D","graph-algorithms-graph-basics-notion-of-graphs",1794017504,{"doc_id":176,"doc_title":177,"file_type":136,"home_preview_img_url":178,"slug":179,"view_count":22,"category_name":29,"create_tm":180},685755,"Programming Workbench: Compressed Sparse Row Format for Representing Graphs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229999690652/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=%2FppuhGMekOXu0CMgAOYSR2V9dWo%3D","programming-workbench-compressed-sparse-row-format-for-representing-graphs",1794017513,{"doc_id":182,"doc_title":183,"file_type":136,"home_preview_img_url":184,"slug":185,"view_count":109,"category_name":29,"create_tm":186},648278,"Visualization of Graphs - Lecture 8 - Hierarchical Layouts: Sugiyama Framework - Hierarchical Drawing - Motivation","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229972337116/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=phectHo%2BCgTb%2B8JrwPuz3IAx8is%3D","visualization-of-graphs-lecture-8-hierarchical-layouts-sugiyama-framework-hierarchical-drawing-motivation",1792792942,{"doc_id":188,"doc_title":189,"file_type":136,"home_preview_img_url":190,"slug":191,"view_count":104,"category_name":29,"create_tm":192},663136,"Graph Morphing via Orthogonal Box Drawings","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229981699662/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=D98ckBTH82Nesg1G5p7q%2BRKG648%3D","graph-morphing-via-orthogonal-box-drawings",1793225307,{"doc_id":194,"doc_title":195,"file_type":136,"home_preview_img_url":196,"slug":197,"view_count":100,"category_name":29,"create_tm":198},685892,"Medusa - Simplified Graph Processing on GPUs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000264962/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=0letd2BAvnzxCXoyBeJDCSu9MlY%3D","medusa-simplified-graph-processing-on-gpus",1794021609,{"doc_id":200,"doc_title":201,"file_type":136,"home_preview_img_url":202,"slug":203,"view_count":33,"category_name":29,"create_tm":204},686585,"The Git version control system - An introduction to the Git version control system - Felix Gruber","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001039806/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=S%2BotF%2Bncal2pOwQzU1fkuecqqnw%3D","the-git-version-control-system-an-introduction-to-the-git-version-control-system-felix-gruber",1794057221,{"doc_id":206,"doc_title":207,"file_type":136,"home_preview_img_url":208,"slug":209,"view_count":210,"category_name":29,"create_tm":211},656373,"Automated generation of circulations within a floorplan - read online free","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975307976/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=tA2Vs1tW5TfWGFhrGTeoRyfov4U%3D","automated-generation-of-circulations-within-a-floorplan-read-online-free",11,1792968176,{"doc_id":213,"doc_title":214,"file_type":136,"home_preview_img_url":215,"slug":216,"view_count":95,"category_name":29,"create_tm":217},648701,"WCB-OmniBlock-ShopDrawings - Rebar Placement","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229972129182/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=8z%2B5O%2Fe7a7mCoEcFo2mJjEcF83I%3D","wcb-omniblock-shopdrawings-rebar-placement",1792794722,{"doc_id":219,"doc_title":220,"file_type":136,"home_preview_img_url":221,"slug":222,"view_count":95,"category_name":29,"create_tm":223},663186,"tikz-network - Version 1.1 - User Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229981599117/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796354459&Signature=TABa1U%2BgG9e4I0u4Fula6QCtJsw%3D","tikz-network-version-11-user-manual",1793225672]