<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: LilChamp</title>
    <description>The latest articles on DEV Community by LilChamp (@lilchamp).</description>
    <link>https://dev.to/lilchamp</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F218531%2Fdf611045-a93f-4c19-a1ac-8ad75ef08e0f.png</url>
      <title>DEV Community: LilChamp</title>
      <link>https://dev.to/lilchamp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lilchamp"/>
    <language>en</language>
    <item>
      <title>Trying to make a graph of nodes but shorted my own brain</title>
      <dc:creator>LilChamp</dc:creator>
      <pubDate>Mon, 26 Aug 2019 10:11:00 +0000</pubDate>
      <link>https://dev.to/lilchamp/trying-to-make-a-graph-of-nodes-but-shorted-my-own-brain-2edm</link>
      <guid>https://dev.to/lilchamp/trying-to-make-a-graph-of-nodes-but-shorted-my-own-brain-2edm</guid>
      <description>&lt;p&gt;Hello everyone,,&lt;br&gt;
This semester I'm taking a Combinatorics and Graph theory class and I thought to prep making an application that graphs nodes and their connections would be cool. So far so good. I decided to base the application on the board game Scotland Yard and had almost no issue until I decided to include the functionality of checking which nodes would be along a bus path.&lt;/p&gt;

&lt;p&gt;For those who haven't played you have a map of a city, and you can travel between points via taxi, train, or bus, if train passes through nodes someone else is on you're fine, but if a bus does you get caught (those might be house rules but it's how I played &lt;a href="https://capread.com"&gt;https://capread.com&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Trying to check a very specific path along this graph is what caused the hold up. Because I initially was gonna do like breadth first searching but I realized that's not specific enough I need to check this path specifically. So I decided to make a travel path object connecting the nodes and now I've fried my brain even more trying to think "how do I set up all these connections in a clean randomly generated way instead of a tangled mess.&lt;/p&gt;

&lt;p&gt;The above to problems are what I'd enjoy other people's thoughts on:&lt;/p&gt;

&lt;p&gt;How would you check what nodes lie on a very specific path within a graph? Does having path objects seem like a decent alternative to some search algorithm?&lt;/p&gt;

&lt;p&gt;When generating a graph of nodes and connections what is a good way for one to limit connections in such a way that say node 1 can't connect to node 100 because it's too far or to node 5 because there is already a Bus/train/taxi connection between the two?&lt;/p&gt;

&lt;p&gt;Part of me wants to say "the scope of this project ballooned to quickly and you should reassess" but with how much I enjoy graphs and programs that deal with them these are questions I'm going to want to answer eventually&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
