<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Does anyone have a single example of a graphframe with two+ types of vertices? (e.g. user and post, not user to user) in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/does-anyone-have-a-single-example-of-a-graphframe-with-two-types/m-p/10680#M5819</link>
    <description>&lt;P&gt;I feel your pain,&lt;/P&gt;&lt;P&gt;I once tried to use graphframes to flatten a complex tree, ended up using graphX (which is even worse to use but at least it is more flexible).&lt;/P&gt;&lt;P&gt;So maybe take a look at graphX?  Beware, it is terrible to use.&lt;/P&gt;&lt;P&gt;I wonder what happened to making cypher (or tinkerpop or whatever) available on spark/databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said:&lt;/P&gt;&lt;P&gt;Maybe you can try to put the type of object into your edges.  The vertices are typeless and contain only values.  The edges have a different value depending on what vertices are connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2023 12:53:12 GMT</pubDate>
    <dc:creator>-werners-</dc:creator>
    <dc:date>2023-01-26T12:53:12Z</dc:date>
    <item>
      <title>Does anyone have a single example of a graphframe with two+ types of vertices? (e.g. user and post, not user to user)</title>
      <link>https://community.databricks.com/t5/data-engineering/does-anyone-have-a-single-example-of-a-graphframe-with-two-types/m-p/10679#M5818</link>
      <description>&lt;P&gt;I have gone through about 75 pages and every single example has only relationships from one type of object to the same type of object. about 90% have the exact same example of "Alice Bob" "friends."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever made a graphframe with two types of objects. I'm fairly convinced the answer is no based off my frustrating-as-heck searching. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit this is the example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vertices = sqlContext.createDataFrame([&lt;/P&gt;&lt;P&gt; ("a", "Alice", 34),&lt;/P&gt;&lt;P&gt; ("b", "Bob", 36),&lt;/P&gt;&lt;P&gt; ("c", "Charlie", 30),&lt;/P&gt;&lt;P&gt; ("d", "David", 29),&lt;/P&gt;&lt;P&gt; ("e", "Esther", 32),&lt;/P&gt;&lt;P&gt;("e1", "Esther2", 32),&lt;/P&gt;&lt;P&gt; ("f", "*****", 36),&lt;/P&gt;&lt;P&gt; ("g", "Gabby", 60),&lt;/P&gt;&lt;P&gt; ("h", "Mark", 61),&lt;/P&gt;&lt;P&gt; ("i", "Gunter", 62),&lt;/P&gt;&lt;P&gt; ("j", "Marit", 63)], ["id", "name", "age"])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edges = sqlContext.createDataFrame([&lt;/P&gt;&lt;P&gt; ("a", "b", "friend"),&lt;/P&gt;&lt;P&gt; ("b", "a", "follow"),&lt;/P&gt;&lt;P&gt; ("c", "a", "follow"),&lt;/P&gt;&lt;P&gt; ("c", "f", "follow"),&lt;/P&gt;&lt;P&gt; ("g", "h", "follow"),&lt;/P&gt;&lt;P&gt; ("h", "i", "friend"),&lt;/P&gt;&lt;P&gt; ("h", "j", "friend"),&lt;/P&gt;&lt;P&gt; ("j", "h", "friend"),&lt;/P&gt;&lt;P&gt; ("e", "e1", "friend")&lt;/P&gt;&lt;P&gt;], ["src", "dst", "relationship"])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g = GraphFrame(vertices, edges)&lt;/P&gt;&lt;P&gt;PlotGraph(g.edges)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm convinced nobody knows how to use graphframes beyond this stupid trivial example and this is super frustrating. &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 18:16:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/does-anyone-have-a-single-example-of-a-graphframe-with-two-types/m-p/10679#M5818</guid>
      <dc:creator>jonathan-dufaul</dc:creator>
      <dc:date>2023-01-25T18:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a single example of a graphframe with two+ types of vertices? (e.g. user and post, not user to user)</title>
      <link>https://community.databricks.com/t5/data-engineering/does-anyone-have-a-single-example-of-a-graphframe-with-two-types/m-p/10680#M5819</link>
      <description>&lt;P&gt;I feel your pain,&lt;/P&gt;&lt;P&gt;I once tried to use graphframes to flatten a complex tree, ended up using graphX (which is even worse to use but at least it is more flexible).&lt;/P&gt;&lt;P&gt;So maybe take a look at graphX?  Beware, it is terrible to use.&lt;/P&gt;&lt;P&gt;I wonder what happened to making cypher (or tinkerpop or whatever) available on spark/databricks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said:&lt;/P&gt;&lt;P&gt;Maybe you can try to put the type of object into your edges.  The vertices are typeless and contain only values.  The edges have a different value depending on what vertices are connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 12:53:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/does-anyone-have-a-single-example-of-a-graphframe-with-two-types/m-p/10680#M5819</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2023-01-26T12:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Does anyone have a single example of a graphframe with two+ types of vertices? (e.g. user and post, not user to user)</title>
      <link>https://community.databricks.com/t5/data-engineering/does-anyone-have-a-single-example-of-a-graphframe-with-two-types/m-p/10681#M5820</link>
      <description>&lt;P&gt;I think I finally found a page that explicitly said, "no, graphframes cannot handle different types of vertices," which seems to defeat like 90% of why you would want to use a graph database/only be relevant to the most simple graph database problems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They blamed dataframes for being so restrictive as a reason for the limitation, but, like, they chose to make this based on dataframes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's like group theory when I need cosets rings and ideals. I'd be ashamed publicly releasing this as and parading it as a viable product.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 15:32:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/does-anyone-have-a-single-example-of-a-graphframe-with-two-types/m-p/10681#M5820</guid>
      <dc:creator>jonathan-dufaul</dc:creator>
      <dc:date>2023-01-26T15:32:42Z</dc:date>
    </item>
  </channel>
</rss>

