Weighted directed graph clustering - cluster-analysis

I'm generating graphs which look something like this and has the following properties:
edges are weighted and directed
nodes are either blue or red
blue nodes only connect to blue nodes
red nodes only connect to blue nodes
Which would be the best way of clustering the blue nodes into the strongly connected components I see? The higher weight edges are represented by thicker arrows.
I'm using NetworkX and PyVis.
I have looked at the community detection algorithms available here but I have no idea where to start, there's just too many.
Example graph
GraphML for the image
<?xml version='1.0' encoding='utf-8'?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"><key id="d3" for="edge" attr.name="weight" attr.type="double"/>
<key id="d2" for="node" attr.name="type" attr.type="string"/>
<key id="d1" for="node" attr.name="title" attr.type="string"/>
<key id="d0" for="node" attr.name="color" attr.type="string"/>
<graph edgedefault="directed"><node id="e_59">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_51">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_34">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_49">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_7">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_143">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_109">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_154">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_155">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_127">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_254">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_185">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_183">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_214">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="e_221">
<data key="d0">blue</data>
<data key="d1"></data>
<data key="d2">excitatory</data>
</node>
<node id="i_62">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_1">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_27">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_40">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_48">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_52">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_14">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_10">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_55">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_19">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_36">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_2">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_44">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_53">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<node id="i_3">
<data key="d0">red</data>
<data key="d1"></data>
<data key="d2">inhibitory</data>
</node>
<edge source="e_59" target="e_34">
<data key="d3">0.0075</data>
</edge>
<edge source="e_51" target="e_34">
<data key="d3">0.0075</data>
</edge>
<edge source="e_51" target="e_49">
<data key="d3">0.0075</data>
</edge>
<edge source="e_34" target="e_49">
<data key="d3">0.0075</data>
</edge>
<edge source="e_49" target="e_7">
<data key="d3">0.0075</data>
</edge>
<edge source="e_49" target="e_51">
<data key="d3">0.0075</data>
</edge>
<edge source="e_49" target="e_59">
<data key="d3">0.0075</data>
</edge>
<edge source="e_143" target="e_154">
<data key="d3">0.0075</data>
</edge>
<edge source="e_109" target="e_143">
<data key="d3">0.0075</data>
</edge>
<edge source="e_154" target="e_127">
<data key="d3">0.0075</data>
</edge>
<edge source="e_155" target="e_109">
<data key="d3">0.0075</data>
</edge>
<edge source="e_127" target="e_143">
<data key="d3">0.0075</data>
</edge>
<edge source="e_127" target="e_154">
<data key="d3">0.0075</data>
</edge>
<edge source="e_254" target="e_183">
<data key="d3">0.0005</data>
</edge>
<edge source="e_254" target="e_221">
<data key="d3">0.0005</data>
</edge>
<edge source="e_185" target="e_183">
<data key="d3">0.0005</data>
</edge>
<edge source="e_185" target="e_254">
<data key="d3">0.0005</data>
</edge>
<edge source="e_183" target="e_185">
<data key="d3">0.0005</data>
</edge>
<edge source="e_183" target="e_214">
<data key="d3">0.0005</data>
</edge>
<edge source="e_183" target="e_221">
<data key="d3">0.0005</data>
</edge>
<edge source="e_214" target="e_185">
<data key="d3">0.0005</data>
</edge>
<edge source="e_214" target="e_221">
<data key="d3">0.0005</data>
</edge>
<edge source="e_214" target="e_254">
<data key="d3">0.0005</data>
</edge>
<edge source="e_221" target="e_185">
<data key="d3">0.0005</data>
</edge>
<edge source="e_221" target="e_214">
<data key="d3">0.0005</data>
</edge>
<edge source="e_221" target="e_254">
<data key="d3">0.0005</data>
</edge>
<edge source="i_62" target="e_34">
<data key="d3">0.001</data>
</edge>
<edge source="i_62" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_62" target="e_155">
<data key="d3">0.001</data>
</edge>
<edge source="i_62" target="e_185">
<data key="d3">0.001</data>
</edge>
<edge source="i_1" target="e_127">
<data key="d3">0.001</data>
</edge>
<edge source="i_1" target="e_183">
<data key="d3">0.001</data>
</edge>
<edge source="i_1" target="e_214">
<data key="d3">0.001</data>
</edge>
<edge source="i_27" target="e_34">
<data key="d3">0.001</data>
</edge>
<edge source="i_27" target="e_59">
<data key="d3">0.001</data>
</edge>
<edge source="i_27" target="e_154">
<data key="d3">0.001</data>
</edge>
<edge source="i_27" target="e_183">
<data key="d3">0.001</data>
</edge>
<edge source="i_27" target="e_185">
<data key="d3">0.001</data>
</edge>
<edge source="i_27" target="e_214">
<data key="d3">0.001</data>
</edge>
<edge source="i_40" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_40" target="e_154">
<data key="d3">0.001</data>
</edge>
<edge source="i_48" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_48" target="e_59">
<data key="d3">0.001</data>
</edge>
<edge source="i_48" target="e_109">
<data key="d3">0.001</data>
</edge>
<edge source="i_48" target="e_155">
<data key="d3">0.001</data>
</edge>
<edge source="i_48" target="e_183">
<data key="d3">0.001</data>
</edge>
<edge source="i_48" target="e_214">
<data key="d3">0.001</data>
</edge>
<edge source="i_52" target="e_51">
<data key="d3">0.001</data>
</edge>
<edge source="i_52" target="e_109">
<data key="d3">0.001</data>
</edge>
<edge source="i_52" target="e_185">
<data key="d3">0.001</data>
</edge>
<edge source="i_14" target="e_109">
<data key="d3">0.001</data>
</edge>
<edge source="i_14" target="e_127">
<data key="d3">0.001</data>
</edge>
<edge source="i_14" target="e_155">
<data key="d3">0.001</data>
</edge>
<edge source="i_14" target="e_183">
<data key="d3">0.001</data>
</edge>
<edge source="i_14" target="e_214">
<data key="d3">0.001</data>
</edge>
<edge source="i_10" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_10" target="e_59">
<data key="d3">0.001</data>
</edge>
<edge source="i_10" target="e_221">
<data key="d3">0.001</data>
</edge>
<edge source="i_55" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_55" target="e_155">
<data key="d3">0.001</data>
</edge>
<edge source="i_55" target="e_183">
<data key="d3">0.001</data>
</edge>
<edge source="i_55" target="e_254">
<data key="d3">0.001</data>
</edge>
<edge source="i_19" target="e_7">
<data key="d3">0.001</data>
</edge>
<edge source="i_19" target="e_34">
<data key="d3">0.001</data>
</edge>
<edge source="i_19" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_19" target="e_51">
<data key="d3">0.001</data>
</edge>
<edge source="i_19" target="e_155">
<data key="d3">0.001</data>
</edge>
<edge source="i_19" target="e_185">
<data key="d3">0.001</data>
</edge>
<edge source="i_19" target="e_214">
<data key="d3">0.001</data>
</edge>
<edge source="i_36" target="e_7">
<data key="d3">0.001</data>
</edge>
<edge source="i_36" target="e_127">
<data key="d3">0.001</data>
</edge>
<edge source="i_36" target="e_155">
<data key="d3">0.001</data>
</edge>
<edge source="i_36" target="e_214">
<data key="d3">0.001</data>
</edge>
<edge source="i_2" target="e_7">
<data key="d3">0.001</data>
</edge>
<edge source="i_2" target="e_51">
<data key="d3">0.001</data>
</edge>
<edge source="i_2" target="e_59">
<data key="d3">0.001</data>
</edge>
<edge source="i_2" target="e_154">
<data key="d3">0.001</data>
</edge>
<edge source="i_2" target="e_185">
<data key="d3">0.001</data>
</edge>
<edge source="i_44" target="e_34">
<data key="d3">0.001</data>
</edge>
<edge source="i_44" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_44" target="e_59">
<data key="d3">0.001</data>
</edge>
<edge source="i_44" target="e_154">
<data key="d3">0.001</data>
</edge>
<edge source="i_53" target="e_34">
<data key="d3">0.001</data>
</edge>
<edge source="i_53" target="e_49">
<data key="d3">0.001</data>
</edge>
<edge source="i_53" target="e_109">
<data key="d3">0.001</data>
</edge>
<edge source="i_53" target="e_127">
<data key="d3">0.001</data>
</edge>
<edge source="i_53" target="e_183">
<data key="d3">0.001</data>
</edge>
<edge source="i_3" target="e_51">
<data key="d3">0.001</data>
</edge>
<edge source="i_3" target="e_143">
<data key="d3">0.001</data>
</edge>
<edge source="i_3" target="e_154">
<data key="d3">0.001</data>
</edge>
<edge source="i_3" target="e_254">
<data key="d3">0.001</data>
</edge>
</graph></graphml>

Related

Need to read value of multiple node: ORA-19025: EXTRACTVALUE returns value of only one node

I can successfully read from xml file : DataTransfer_HH_TWWholesale_001_004_12142020113003.xml
which has only one node.
But when I am trying to read multiple node from xml file: DataTransfer_HH_TWWholesale_001_009_09282020103349.xml , I get errorORA-19025: EXTRACTVALUE returns value of only one node.
How can I read values from multiple node?
Below is my file and code:
File: DataTransfer_HH_TWWholesale_001_004_12142020113003.xml
<MeterReadsReplyMessage xmlns="http://www.emeter.com/energyip/amiinterface">
<Header>
<verb>create</verb>
<noun>DTSMeterReads</noun>
<revision>2</revision>
<source>EIP</source>
</Header>
<payload>
<MeterReading>
<ServiceDeliveryPoint>
<mRID>901291331_0001</mRID>
<idType>SDP_X_UDC_ASSET_ID</idType>
</ServiceDeliveryPoint>
<Meter>
<mRID>SIE_640 C_310149563</mRID>
<idType>METER_X_UDC_ASSET_ID</idType>
</Meter>
<IntervalBlock>
<readingTypeId>LREG</readingTypeId>
<ReadingType>
<measurementType>Register</measurementType>
<touBinNumber>0</touBinNumber>
<unit>L</unit>
<channelNumber>1</channelNumber>
<direction>Delivered</direction>
</ReadingType>
<IReading>
<endTime>2020-10-08T00:00:00.000Z</endTime>
<value>0.0</value>
<quality>
<validationStatus>EST</validationStatus>
<locked>false</locked>
</quality>
</IReading>
</IntervalBlock>
</MeterReading>
</payload>
</MeterReadsReplyMessage>
Code:
SELECT EXTRACTVALUE (VALUE (a1),'/Header/verb','xmlns="http://www.emeter.com/energyip/amiinterface')verb,
EXTRACTVALUE (VALUE (a1),'/Header/noun','xmlns="http://www.emeter.com/energyip/amiinterface')noun,
EXTRACTVALUE (VALUE (a1),'/Header/source','xmlns="http://www.emeter.com/energyip/amiinterface')source
FROM xml_tab,TABLE (XMLSEQUENCE (EXTRACT (xml_data,
'/MeterReadsReplyMessage/Header',
'xmlns="http://www.emeter.com/energyip/amiinterface"'
))) a1
WHERE file_name = 'DataTransfer_HH_TWWholesale_001_004_12142020113003.xml';
Query:
File: DataTransfer_HH_TWWholesale_001_009_09282020103349.xml
<MeterReadsReplyMessage xmlns="http://www.emeter.com/energyip/amiinterface">
<Header>
<verb>create</verb>
<noun>DTSMeterReads</noun>
<revision>2</revision>
<source>EIP</source>
</Header>
<payload>
<MeterReading>
<ServiceDeliveryPoint>
<mRID>901291331_0001</mRID>
<idType>SDP_X_UDC_ASSET_ID</idType>
</ServiceDeliveryPoint>
<Meter>
<mRID>SIE_640 C_310149563</mRID>
<idType>METER_X_UDC_ASSET_ID</idType>
</Meter>
<IntervalBlock>
<readingTypeId>LREG</readingTypeId>
<ReadingType>
<measurementType>Register</measurementType>
<touBinNumber>0</touBinNumber>
<unit>L</unit>
<channelNumber>1</channelNumber>
<direction>Delivered</direction>
</ReadingType>
<IReading>
<endTime>2020-10-08T00:00:00.000Z</endTime>
<value>0.0</value>
<quality>
<validationStatus>EST</validationStatus>
<locked>false</locked>
</quality>
</IReading>
</IntervalBlock>
</MeterReading>
<MeterReading>
<ServiceDeliveryPoint>
<mRID>112448526_0001</mRID>
<idType>SDP_X_UDC_ASSET_ID</idType>
</ServiceDeliveryPoint>
<Meter>
<mRID>SCE_640 Concentric_310037947</mRID>
<idType>METER_X_UDC_ASSET_ID</idType>
</Meter>
<IntervalBlock>
<readingTypeId>LREG</readingTypeId>
<ReadingType>
<measurementType>Register</measurementType>
<touBinNumber>0</touBinNumber>
<unit>L</unit>
<channelNumber>1</channelNumber>
<direction>Delivered</direction>
</ReadingType>
<IReading>
<endTime>2015-12-21T01:00:00.000Z</endTime>
<value>0.0</value>
<flags>0</flags>
<quality>
<validationStatus>VAL</validationStatus>
<locked>false</locked>
</quality>
</IReading>
</IntervalBlock>
</MeterReading>
</payload>
</MeterReadsReplyMessage>
query:
Thanks for reading my question.
Expected result:
mRID mfg_serial_num readingTypeId measurementType Read_time
901291331_0001 SIE_640 C_310149563 LREG Register 2020-10-08T00:00:00.000Z
112448526_0001 SCE_640 Concentric_310037947 LREG Register 2015-12-21T01:00:00.000Z
The EXTRACT and EXTRACTVALUE XML functions are deprecated. Use XMLTABLE instead:
SELECT t.file_name,
x.*
FROM xml_tab t
CROSS APPLY XMLTABLE(
XMLNAMESPACES( DEFAULT 'http://www.emeter.com/energyip/amiinterface' ),
'/MeterReadsReplyMessage/payload/MeterReading'
PASSING t.xml_data
COLUMNS
mRID VARCHAR2(20) PATH './ServiceDeliveryPoint/mRID',
mfg_serial_num VARCHAR2(20) PATH './Meter/mRID',
readingTypeID VARCHAR2(10) PATH './IntervalBlock/readingTypeId',
measurement_type VARCHAR2(10) PATH './IntervalBlock/ReadingType/measurementType',
reading_time TIMESTAMP WITH TIME ZONE PATH '//IReading/endTime'
) x;
Which, for your sample data:
CREATE TABLE xml_tab ( file_name, xml_data ) AS
SELECT 'DataTransfer_HH_TWWholesale_001_004_12142020113003.xml',
XMLTYPE(
'<MeterReadsReplyMessage xmlns="http://www.emeter.com/energyip/amiinterface">
<Header>
<verb>create</verb>
<noun>DTSMeterReads</noun>
<revision>2</revision>
<source>EIP</source>
</Header>
<payload>
<MeterReading>
<ServiceDeliveryPoint>
<mRID>901291331_0001</mRID>
<idType>SDP_X_UDC_ASSET_ID</idType>
</ServiceDeliveryPoint>
<Meter>
<mRID>SIE_640 C_310149563</mRID>
<idType>METER_X_UDC_ASSET_ID</idType>
</Meter>
<IntervalBlock>
<readingTypeId>LREG</readingTypeId>
<ReadingType>
<measurementType>Register</measurementType>
<touBinNumber>0</touBinNumber>
<unit>L</unit>
<channelNumber>1</channelNumber>
<direction>Delivered</direction>
</ReadingType>
<IReading>
<endTime>2020-10-08T00:00:00.000Z</endTime>
<value>0.0</value>
<quality>
<validationStatus>EST</validationStatus>
<locked>false</locked>
</quality>
</IReading>
</IntervalBlock>
</MeterReading>
</payload>
</MeterReadsReplyMessage>'
) FROM DUAL UNION ALL
SELECT 'DataTransfer_HH_TWWholesale_001_009_00000000000000.xml',
XMLType( '<MeterReadsReplyMessage xmlns="http://www.emeter.com/energyip/amiinterface">
<Header>
<verb>create</verb>
<noun>DTSMeterReads</noun>
<revision>2</revision>
<source>EIP</source>
</Header>
<payload>
<MeterReading>
<ServiceDeliveryPoint>
<mRID>901291331_0001</mRID>
<idType>SDP_X_UDC_ASSET_ID</idType>
</ServiceDeliveryPoint>
<Meter>
<mRID>SIE_640 C_310149563</mRID>
<idType>METER_X_UDC_ASSET_ID</idType>
</Meter>
<IntervalBlock>
<readingTypeId>LREG</readingTypeId>
<ReadingType>
<measurementType>Register</measurementType>
<touBinNumber>0</touBinNumber>
<unit>L</unit>
<channelNumber>1</channelNumber>
<direction>Delivered</direction>
</ReadingType>
<IReading>
<endTime>2020-10-08T00:00:00.000Z</endTime>
<value>0.0</value>
<quality>
<validationStatus>EST</validationStatus>
<locked>false</locked>
</quality>
</IReading>
</IntervalBlock>
</MeterReading>
<MeterReading>
<ServiceDeliveryPoint>
<mRID>112448526_0001</mRID>
<idType>SDP_X_UDC_ASSET_ID</idType>
</ServiceDeliveryPoint>
<Meter>
<mRID>SCE_640 Concentric_310037947</mRID>
<idType>METER_X_UDC_ASSET_ID</idType>
</Meter>
<IntervalBlock>
<readingTypeId>LREG</readingTypeId>
<ReadingType>
<measurementType>Register</measurementType>
<touBinNumber>0</touBinNumber>
<unit>L</unit>
<channelNumber>1</channelNumber>
<direction>Delivered</direction>
</ReadingType>
<IReading>
<endTime>2015-12-21T01:00:00.000Z</endTime>
<value>0.0</value>
<flags>0</flags>
<quality>
<validationStatus>VAL</validationStatus>
<locked>false</locked>
</quality>
</IReading>
</IntervalBlock>
</MeterReading>
</payload>
</MeterReadsReplyMessage>'
) FROM DUAL;
Outputs:
FILE_NAME | MRID | MFG_SERIAL_NUM | READINGTYPEID | MEASUREMENT_TYPE | READING_TIME
:----------------------------------------------------- | :------------- | :------------------- | :------------ | :--------------- | :----------------------------------
DataTransfer_HH_TWWholesale_001_004_12142020113003.xml | 901291331_0001 | SIE_640 C_310149563 | LREG | Register | 2020-10-08T00:00:00.000000000+00:00
DataTransfer_HH_TWWholesale_001_009_00000000000000.xml | 901291331_0001 | SIE_640 C_310149563 | LREG | Register | 2020-10-08T00:00:00.000000000+00:00
DataTransfer_HH_TWWholesale_001_009_00000000000000.xml | 112448526_0001 | SCE_640 Concentric_3 | LREG | Register | 2015-12-21T01:00:00.000000000+00:00
db<>fiddle here

graphml file containing emojis getting converted to black nodes in gephi

Good morning, I am trying to visualize an emoji graphml file in gephi, however, when I import it in, it keeps showing the black dots like here:
I am not sure what is going on. Am I missing something? Please give me little direction if you could, I am using Windows 10. I have never used the gephi before, and did a google search related to the problem, found few blogs, but that also didn't work out. Here is content of graphml file which I wrote it in R:
<?xml version="1.0" encoding="UTF-8"?>
<graphml xmlns="http://graphml.graphdrawing.org/xmlns"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns
http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd">
<!-- Created by igraph -->
<key id="v_name" for="node" attr.name="name" attr.type="string"/>
<graph id="G" edgedefault="undirected">
<node id="n0">
<data key="v_name">๐Ÿ˜ƒ</data>
</node>
<node id="n1">
<data key="v_name">๐Ÿง•</data>
</node>
<node id="n2">
<data key="v_name">๐Ÿ‘</data>
</node>
<node id="n3">
<data key="v_name">๐Ÿ‡จ๐Ÿ‡ฆ</data>
</node>
<node id="n4">
<data key="v_name">๐Ÿ˜</data>
</node>
<node id="n5">
<data key="v_name">๐Ÿ™</data>
</node>
<node id="n6">
<data key="v_name">๐Ÿ™Œ</data>
</node>
<node id="n7">
<data key="v_name">๐Ÿ‘</data>
</node>
<node id="n8">
<data key="v_name">๐Ÿ’™</data>
</node>
<node id="n9">
<data key="v_name">๐Ÿงก</data>
</node>
<node id="n10">
<data key="v_name">๐Ÿ˜ž</data>
</node>
<node id="n11">
<data key="v_name">๐Ÿ˜ช</data>
</node>
<node id="n12">
<data key="v_name">๐Ÿ’”</data>
</node>
<node id="n13">
<data key="v_name">๐Ÿถ</data>
</node>
<node id="n14">
<data key="v_name">๐Ÿ˜‹</data>
</node>
<node id="n15">
<data key="v_name">๐Ÿ’š</data>
</node>
<node id="n16">
<data key="v_name">๐Ÿ˜ก</data>
</node>
<node id="n17">
<data key="v_name">๐Ÿ˜”</data>
</node>
<node id="n18">
<data key="v_name">๐Ÿ˜Š</data>
</node>
<node id="n19">
<data key="v_name">๐Ÿฎ</data>
</node>
<node id="n20">
<data key="v_name">๐Ÿด</data>
</node>
<node id="n21">
<data key="v_name">๐Ÿณ</data>
</node>
<node id="n22">
<data key="v_name">๐Ÿ˜</data>
</node>
<node id="n23">
<data key="v_name">๐ŸŸ</data>
</node>
<node id="n24">
<data key="v_name">๐Ÿค”</data>
</node>
<node id="n25">
<data key="v_name">๐Ÿ˜ฅ</data>
</node>
<node id="n26">
<data key="v_name">๐ŸŒฑ</data>
</node>
<node id="n27">
<data key="v_name">๐ŸŽ‚</data>
</node>
<node id="n28">
<data key="v_name">๐Ÿ˜ข</data>
</node>
<node id="n29">
<data key="v_name">๐Ÿ˜‚</data>
</node>
<node id="n30">
<data key="v_name">๐Ÿคก</data>
</node>
<node id="n31">
<data key="v_name">๐Ÿ’ฉ</data>
</node>
<node id="n32">
<data key="v_name">๐Ÿคฃ</data>
</node>
<node id="n33">
<data key="v_name">๐Ÿ˜†</data>
</node>
<node id="n34">
<data key="v_name">๐Ÿ‘‰๐Ÿฝ</data>
</node>
<node id="n35">
<data key="v_name">๐Ÿ’•</data>
</node>
<node id="n36">
<data key="v_name">๐Ÿฝ</data>
</node>
<node id="n37">
<data key="v_name">๐Ÿ‡บ๐Ÿ‡ธ</data>
</node>
<node id="n38">
<data key="v_name">๐Ÿ’ฏ</data>
</node>
<node id="n39">
<data key="v_name">๐Ÿš‚</data>
</node>
<node id="n40">
<data key="v_name">๐Ÿ–•๐Ÿฟ</data>
</node>
<node id="n41">
<data key="v_name">๐Ÿ–•</data>
</node>
<node id="n42">
<data key="v_name">๐Ÿท</data>
</node>
<node id="n43">
<data key="v_name">๐Ÿ‘‰</data>
</node>
<node id="n44">
<data key="v_name">๐Ÿ‘ธ</data>
</node>
<node id="n45">
<data key="v_name">๐Ÿ’ฅ</data>
</node>
<node id="n46">
<data key="v_name">๐Ÿฆด</data>
</node>
<node id="n47">
<data key="v_name">๐Ÿ‘‡</data>
</node>
<node id="n48">
<data key="v_name">๐Ÿšจ</data>
</node>
<node id="n49">
<data key="v_name">๐Ÿ˜ญ</data>
</node>
<node id="n50">
<data key="v_name">๐Ÿ˜˜</data>
</node>
<node id="n51">
<data key="v_name">๐Ÿ˜ฏ</data>
</node>
<node id="n52">
<data key="v_name">๐Ÿ™๐Ÿป</data>
</node>
<node id="n53">
<data key="v_name">๐Ÿš€</data>
</node>
<node id="n54">
<data key="v_name">๐Ÿ”ฅ</data>
</node>
<node id="n55">
<data key="v_name">๐Ÿจ</data>
</node>
<node id="n56">
<data key="v_name">๐ŸŒŽ</data>
</node>
<node id="n57">
<data key="v_name">๐Ÿ‡ฎ๐Ÿ‡ช</data>
</node>
<node id="n58">
<data key="v_name">๐ŸŒธ</data>
</node>
<node id="n59">
<data key="v_name">๐Ÿ˜‡</data>
</node>
<node id="n60">
<data key="v_name">๐Ÿš”</data>
</node>
<node id="n61">
<data key="v_name">๐ŸŽฅ</data>
</node>
<node id="n62">
<data key="v_name">๐Ÿ˜‰</data>
</node>
<node id="n63">
<data key="v_name">๐Ÿฌ</data>
</node>
<node id="n64">
<data key="v_name">๐Ÿ™„</data>
</node>
<node id="n65">
<data key="v_name">๐Ÿคช</data>
</node>
<node id="n66">
<data key="v_name">๐Ÿ’œ</data>
</node>
<node id="n67">
<data key="v_name">๐Ÿ˜ฐ</data>
</node>
<node id="n68">
<data key="v_name">๐Ÿ„</data>
</node>
<node id="n69">
<data key="v_name">๐Ÿ’–</data>
</node>
<node id="n70">
<data key="v_name">๐Ÿ‘Ž</data>
</node>
<node id="n71">
<data key="v_name">๐Ÿšซ</data>
</node>
<node id="n72">
<data key="v_name">๐Ÿ </data>
</node>
<node id="n73">
<data key="v_name">๐Ÿ“</data>
</node>
<node id="n74">
<data key="v_name">๐Ÿ˜“</data>
</node>
<node id="n75">
<data key="v_name">๐ŸŽ‰</data>
</node>
<node id="n76">
<data key="v_name">๐Ÿด</data>
</node>
<node id="n77">
<data key="v_name">๐Ÿ–•๐Ÿฝ</data>
</node>
<node id="n78">
<data key="v_name">๐Ÿ–•๐Ÿป</data>
</node>
<node id="n79">
<data key="v_name">๐Ÿ‘ˆ</data>
</node>
<node id="n80">
<data key="v_name">๐Ÿฆ—</data>
</node>
<node id="n81">
<data key="v_name">๐ŸŒŸ</data>
</node>
<node id="n82">
<data key="v_name">๐Ÿ†˜</data>
</node>
<node id="n83">
<data key="v_name">๐Ÿ˜œ</data>
</node>
<node id="n84">
<data key="v_name">๐Ÿ˜</data>
</node>
<node id="n85">
<data key="v_name">๐Ÿ‡ช๐Ÿ‡บ</data>
</node>
<node id="n86">
<data key="v_name">๐Ÿ‡ฆ๐Ÿ‡ฒ</data>
</node>
<node id="n87">
<data key="v_name">๐Ÿค‘</data>
</node>
<node id="n88">
<data key="v_name">๐Ÿซ</data>
</node>
<node id="n89">
<data key="v_name">๐Ÿญ</data>
</node>
<edge source="n0" target="n64">
</edge>
<edge source="n1" target="n24">
</edge>
<edge source="n2" target="n2">
</edge>
<edge source="n2" target="n2">
</edge>
<edge source="n2" target="n28">
</edge>
<edge source="n3" target="n32">
</edge>
<edge source="n4" target="n5">
</edge>
<edge source="n5" target="n5">
</edge>
<edge source="n6" target="n6">
</edge>
<edge source="n2" target="n6">
</edge>
<edge source="n2" target="n2">
</edge>
<edge source="n5" target="n5">
</edge>
<edge source="n2" target="n2">
</edge>
<edge source="n2" target="n7">
</edge>
<edge source="n6" target="n7">
</edge>
<edge source="n6" target="n6">
</edge>
<edge source="n6" target="n6">
</edge>
<edge source="n4" target="n65">
</edge>
<edge source="n8" target="n66">
</edge>
<edge source="n9" target="n14">
</edge>
<edge source="n10" target="n49">
</edge>
<edge source="n11" target="n67">
</edge>
<edge source="n12" target="n42">
</edge>
<edge source="n13" target="n15">
</edge>
<edge source="n14" target="n68">
</edge>
<edge source="n12" target="n15">
</edge>
<edge source="n15" target="n17">
</edge>
<edge source="n11" target="n16">
</edge>
<edge source="n12" target="n12">
</edge>
<edge source="n17" target="n64">
</edge>
<edge source="n12" target="n18">
</edge>
<edge source="n10" target="n69">
</edge>
<edge source="n19" target="n22">
</edge>
<edge source="n6" target="n28">
</edge>
<edge source="n10" target="n20">
</edge>
<edge source="n12" target="n70">
</edge>
<edge source="n12" target="n71">
</edge>
<edge source="n12" target="n21">
</edge>
<edge source="n22" target="n72">
</edge>
<edge source="n23" target="n25">
</edge>
<edge source="n15" target="n26">
</edge>
<edge source="n12" target="n12">
</edge>
<edge source="n12" target="n73">
</edge>
<edge source="n12" target="n15">
</edge>
<edge source="n16" target="n28">
</edge>
<edge source="n15" target="n16">
</edge>
<edge source="n12" target="n12">
</edge>
<edge source="n12" target="n22">
</edge>
<edge source="n6" target="n15">
</edge>
<edge source="n15" target="n26">
</edge>
<edge source="n12" target="n15">
</edge>
<edge source="n12" target="n74">
</edge>
<edge source="n12" target="n24">
</edge>
<edge source="n22" target="n25">
</edge>
<edge source="n26" target="n26">
</edge>
<edge source="n27" target="n75">
</edge>
<edge source="n3" target="n28">
</edge>
<edge source="n6" target="n12">
</edge>
<edge source="n29" target="n31">
</edge>
<edge source="n30" target="n30">
</edge>
<edge source="n31" target="n32">
</edge>
<edge source="n30" target="n32">
</edge>
<edge source="n31" target="n32">
</edge>
<edge source="n31" target="n31">
</edge>
<edge source="n33" target="n45">
</edge>
<edge source="n24" target="n46">
</edge>
<edge source="n31" target="n34">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n30" target="n35">
</edge>
<edge source="n35" target="n47">
</edge>
<edge source="n4" target="n59">
</edge>
<edge source="n36" target="n76">
</edge>
<edge source="n31" target="n37">
</edge>
<edge source="n37" target="n45">
</edge>
<edge source="n38" target="n45">
</edge>
<edge source="n39" target="n39">
</edge>
<edge source="n40" target="n77">
</edge>
<edge source="n41" target="n78">
</edge>
<edge source="n30" target="n31">
</edge>
<edge source="n30" target="n42">
</edge>
<edge source="n31" target="n78">
</edge>
<edge source="n43" target="n79">
</edge>
<edge source="n24" target="n29">
</edge>
<edge source="n31" target="n32">
</edge>
<edge source="n44" target="n44">
</edge>
<edge source="n31" target="n80">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n31" target="n32">
</edge>
<edge source="n29" target="n30">
</edge>
<edge source="n29" target="n32">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n13" target="n15">
</edge>
<edge source="n22" target="n30">
</edge>
<edge source="n45" target="n45">
</edge>
<edge source="n45" target="n45">
</edge>
<edge source="n43" target="n79">
</edge>
<edge source="n37" target="n37">
</edge>
<edge source="n43" target="n79">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n30" target="n32">
</edge>
<edge source="n29" target="n29">
</edge>
<edge source="n30" target="n46">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n30" target="n32">
</edge>
<edge source="n40" target="n77">
</edge>
<edge source="n41" target="n78">
</edge>
<edge source="n32" target="n32">
</edge>
<edge source="n32" target="n49">
</edge>
<edge source="n25" target="n29">
</edge>
<edge source="n29" target="n29">
</edge>
<edge source="n32" target="n47">
</edge>
<edge source="n47" target="n81">
</edge>
<edge source="n16" target="n16">
</edge>
<edge source="n16" target="n47">
</edge>
<edge source="n7" target="n29">
</edge>
<edge source="n29" target="n29">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n49">
</edge>
<edge source="n49" target="n49">
</edge>
<edge source="n48" target="n49">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n52">
</edge>
<edge source="n50" target="n82">
</edge>
<edge source="n51" target="n54">
</edge>
<edge source="n28" target="n28">
</edge>
<edge source="n28" target="n28">
</edge>
<edge source="n28" target="n28">
</edge>
<edge source="n37" target="n52">
</edge>
<edge source="n16" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n48">
</edge>
<edge source="n48" target="n53">
</edge>
<edge source="n53" target="n53">
</edge>
<edge source="n54" target="n54">
</edge>
<edge source="n55" target="n83">
</edge>
<edge source="n29" target="n84">
</edge>
<edge source="n47" target="n65">
</edge>
<edge source="n37" target="n37">
</edge>
<edge source="n24" target="n30">
</edge>
<edge source="n37" target="n56">
</edge>
<edge source="n57" target="n85">
</edge>
<edge source="n24" target="n37">
</edge>
<edge source="n58" target="n86">
</edge>
<edge source="n37" target="n87">
</edge>
<edge source="n30" target="n59">
</edge>
<edge source="n24" target="n60">
</edge>
<edge source="n37" target="n47">
</edge>
<edge source="n47" target="n61">
</edge>
<edge source="n61" target="n61">
</edge>
<edge source="n62" target="n88">
</edge>
<edge source="n63" target="n89">
</edge>
</graph>
</graphml>
Edit: I have enabled the labels, but I see node id, not the emojis themselves.
We can use the plugin called imagepreview. The trick is, you need to have nodes as emoji images, and those emojis must have their utfs encoding as their name. You would also need a JAVA 6 JDK because a plugin hasn't seen an update since 2015.
If you have the imagepreview plugin installed, you should see a Node Images section at the bottom of the right-side Preview Settings bar. Tick Render nodes as images and specify the folder where the photos are located in the field below. And then have your data containing utfs point to the photo names.

How to load a directed graphML file in NetLogo?

I have used nw:load-graphml "filename.graphml" to load a directed graph in NetLogo, but it is loading undirected graph. Is there any other command to load a directed graphml file in NetLogo?
Below is the code, which I have used to load GraphML file. I have tried both the load-graph and load-graph1 procedures given below.
I also have added directed = "true" attribute to links in the graphml file, for example:
edge directed="true" id="2" source="14341" target="8312"
However, still network loaded is undirected.
to load-graph
let filename user-file
if (filename != false) [
nw:load-graphml filename [
set shape "circle"
set size 1
]
nw:set-context turtles links
]
end
to load-graph1
nw:load-graphml "myfile.graphml"
end
GraphML file:
<?xml version="1.0" encoding="UTF-8"?><graphml xmlns="http://graphml.graphdrawing.org/xmlns">
<key attr.name="label" attr.type="string" for="node" id="label"/>
<key attr.name="Edge Label" attr.type="string" for="edge" id="edgelabel"/>
<key attr.name="weight" attr.type="double" for="edge" id="weight"/>
<key attr.name="r" attr.type="int" for="node" id="r"/>
<key attr.name="g" attr.type="int" for="node" id="g"/>
<key attr.name="b" attr.type="int" for="node" id="b"/>
<key attr.name="x" attr.type="float" for="node" id="x"/>
<key attr.name="y" attr.type="float" for="node" id="y"/>
<key attr.name="size" attr.type="float" for="node" id="size"/>
<graph edgedefault="directed">
<node id="16">
<data key="label">v16</data>
<data key="size">100.0</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">4.917384E-7</data>
<data key="y">48.0</data>
</node>
<node id="15">
<data key="label">v15</data>
<data key="size">97.648</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">14.832003</data>
<data key="y">45.648003</data>
</node>
<node id="17">
<data key="label">v17</data>
<data key="size">97.648</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-14.832001</data>
<data key="y">45.648003</data>
</node>
<node id="14">
<data key="label">v14</data>
<data key="size">90.832</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">28.211998</data>
<data key="y">38.832</data>
</node>
<node id="18">
<data key="label">v18</data>
<data key="size">90.832</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-28.212002</data>
<data key="y">38.832</data>
</node>
<node id="13">
<data key="label">v13</data>
<data key="size">80.212</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">38.832</data>
<data key="y">28.211998</data>
</node>
<node id="19">
<data key="label">v19</data>
<data key="size">80.212</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-38.832</data>
<data key="y">28.211998</data>
</node>
<node id="12">
<data key="label">v12</data>
<data key="size">66.832</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">45.648003</data>
<data key="y">14.832003</data>
</node>
<node id="20">
<data key="label">v20</data>
<data key="size">66.832</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-45.648003</data>
<data key="y">14.832003</data>
</node>
<node id="1">
<data key="label">v1</data>
<data key="size">52.000004</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-48.000004</data>
<data key="y">4.917384E-7</data>
</node>
<node id="11">
<data key="label">v11</data>
<data key="size">52.000004</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">48.0</data>
<data key="y">4.917384E-7</data>
</node>
<node id="2">
<data key="label">v2</data>
<data key="size">37.168003</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-45.648003</data>
<data key="y">-14.832001</data>
</node>
<node id="10">
<data key="label">v10</data>
<data key="size">37.168003</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">45.648003</data>
<data key="y">-14.832001</data>
</node>
<node id="3">
<data key="label">v3</data>
<data key="size">23.788002</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-38.832</data>
<data key="y">-28.212002</data>
</node>
<node id="9">
<data key="label">v9</data>
<data key="size">23.788002</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">38.832</data>
<data key="y">-28.212002</data>
</node>
<node id="4">
<data key="label">v4</data>
<data key="size">13.168001</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-28.212002</data>
<data key="y">-38.832</data>
</node>
<node id="8">
<data key="label">v8</data>
<data key="size">13.168001</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">28.211998</data>
<data key="y">-38.832</data>
</node>
<node id="5">
<data key="label">v5</data>
<data key="size">6.3519998</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">-14.832001</data>
<data key="y">-45.648003</data>
</node>
<node id="7">
<data key="label">v7</data>
<data key="size">6.3519998</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">14.832003</data>
<data key="y">-45.648003</data>
</node>
<node id="6">
<data key="label">v6</data>
<data key="size">4.0</data>
<data key="r">0</data>
<data key="g">0</data>
<data key="b">0</data>
<data key="x">4.917384E-7</data>
<data key="y">-48.000004</data>
</node>
<edge id="0" source="20" target="9">
<data key="weight">1.0</data>
</edge>
<edge id="1" source="17" target="8">
<data key="weight">1.0</data>
</edge>
<edge id="2" source="18" target="2">
<data key="weight">1.0</data>
</edge>
<edge id="3" source="7" target="11">
<data key="weight">1.0</data>
</edge>
<edge id="4" source="16" target="4">
<data key="weight">1.0</data>
</edge>
<edge id="5" source="12" target="9">
<data key="weight">1.0</data>
</edge>
<edge id="6" source="5" target="16">
<data key="weight">1.0</data>
</edge>
<edge id="7" source="9" target="1">
<data key="weight">1.0</data>
</edge>
<edge id="8" source="10" target="4">
<data key="weight">1.0</data>
</edge>
<edge id="9" source="2" target="1">
<data key="weight">1.0</data>
</edge>
<edge id="10" source="18" target="15">
<data key="weight">1.0</data>
</edge>
<edge id="11" source="4" target="11">
<data key="weight">1.0</data>
</edge>
<edge id="12" source="4" target="2">
<data key="weight">1.0</data>
</edge>
<edge id="13" source="9" target="8">
<data key="weight">1.0</data>
</edge>
<edge id="14" source="6" target="8">
<data key="weight">1.0</data>
</edge>
<edge id="15" source="4" target="1">
<data key="weight">1.0</data>
</edge>
<edge id="16" source="2" target="18">
<data key="weight">1.0</data>
</edge>
<edge id="17" source="19" target="6">
<data key="weight">1.0</data>
</edge>
<edge id="18" source="1" target="6">
<data key="weight">1.0</data>
</edge>
<edge id="19" source="8" target="9">
<data key="weight">1.0</data>
</edge>
<edge id="20" source="10" target="3">
<data key="weight">1.0</data>
</edge>
<edge id="21" source="12" target="19">
<data key="weight">1.0</data>
</edge>
<edge id="22" source="11" target="4">
<data key="weight">1.0</data>
</edge>
<edge id="23" source="3" target="18">
<data key="weight">1.0</data>
</edge>
<edge id="24" source="13" target="14">
<data key="weight">1.0</data>
</edge>
<edge id="25" source="10" target="2">
<data key="weight">1.0</data>
</edge>
<edge id="26" source="17" target="6">
<data key="weight">1.0</data>
</edge>
<edge id="27" source="6" target="7">
<data key="weight">1.0</data>
</edge>
<edge id="28" source="12" target="16">
<data key="weight">1.0</data>
</edge>
<edge id="29" source="20" target="3">
<data key="weight">1.0</data>
</edge>
<edge id="30" source="13" target="5">
<data key="weight">1.0</data>
</edge>
<edge id="31" source="20" target="11">
<data key="weight">1.0</data>
</edge>
<edge id="32" source="11" target="15">
<data key="weight">1.0</data>
</edge>
<edge id="33" source="20" target="15">
<data key="weight">1.0</data>
</edge>
<edge id="34" source="15" target="17">
<data key="weight">1.0</data>
</edge>
<edge id="35" source="10" target="8">
<data key="weight">1.0</data>
</edge>
<edge id="36" source="14" target="7">
<data key="weight">1.0</data>
</edge>
<edge id="37" source="8" target="2">
<data key="weight">1.0</data>
</edge>
<edge id="38" source="16" target="7">
<data key="weight">1.0</data>
</edge>
<edge id="39" source="1" target="19">
<data key="weight">1.0</data>
</edge>
<edge id="40" source="5" target="13">
<data key="weight">1.0</data>
</edge>
<edge id="41" source="1" target="20">
<data key="weight">1.0</data>
</edge>
<edge id="42" source="17" target="4">
<data key="weight">1.0</data>
</edge>
<edge id="43" source="13" target="9">
<data key="weight">1.0</data>
</edge>
<edge id="44" source="14" target="12">
<data key="weight">1.0</data>
</edge>
<edge id="45" source="8" target="13">
<data key="weight">1.0</data>
</edge>
<edge id="46" source="8" target="1">
<data key="weight">1.0</data>
</edge>
<edge id="47" source="9" target="2">
<data key="weight">1.0</data>
</edge>
<edge id="48" source="5" target="14">
<data key="weight">1.0</data>
</edge>
<edge id="49" source="16" target="11">
<data key="weight">1.0</data>
</edge>
<edge id="50" source="4" target="9">
<data key="weight">1.0</data>
</edge>
<edge id="51" source="1" target="8">
<data key="weight">1.0</data>
</edge>
<edge id="52" source="7" target="12">
<data key="weight">1.0</data>
</edge>
<edge id="53" source="20" target="16">
<data key="weight">1.0</data>
</edge>
</graph>
</graphml>
nw:load-graphml can load directed graphs.
Make sure the edgedefault="directed" is set for the <graph> element in your GraphML file. Also make sure that, if you use a link breed, that breed is defined as directed inside NetLogo.
If that still doesn't work, you will have to show us a sample GraphML file and the exact code you use to load it...
Edit
I have investigated further, and I think this might be a bug in the way nw loads a GraphML file with unbreeded links.
The elegant way to get around it would be to create a breed of directed links and use a breed attribute inside your GraphML file to set the links' breed.
A much quicker, more hackish way to get around the problem is to add something like this before you load your network:
let dummies []
create-turtles 2 [
create-links-to other turtles
set dummies fput self dummies
]
And then, after you have loaded your network:
foreach dummies [ t -> ask t [ die ] ]
This relies on the fact that NetLogo's unbreeded links can be either directed or undirected, but not both. By created dummy directed links before the network is loaded, we force NetLogo to create all other links as directed.
I have opened an issue on GitHub about the problem and will investigate further. Until then, that hack should save you.

Creating grouped bar or Line graph

I'm working with Jaspersoft Studio 5.6, trying to create a report that shows multiple XY (or bar) charts based upon a grouping parameter. I've dumbed down my original data to the following, and I still can't figure it out.
DATA
+------+------+-------+
| xrow | yrow | group |
+------+------+-------+
| 1 | 11 | 1 |
| 2 | 12 | 1 |
| 3 | 10 | 1 |
| 1 | 5 | 2 |
| 2 | 10 | 2 |
| 3 | 14 | 2 |
+------+------+-------+
Here is my XML code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version last-->
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="group3" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="cdd6d2cf-7c0c-4d79-8cfe-a4f1e04da233">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Office"/>
<queryString language="SQL">
<![CDATA[SELECT maintenance.test.xrow,
maintenance.test.yrow,
maintenance.test.group
FROM maintenance.test]]>
</queryString>
<field name="xrow" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="yrow" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<field name="group" class="java.lang.Integer">
<fieldDescription><![CDATA[]]></fieldDescription>
</field>
<sortField name="group"/>
<sortField name="xrow"/>
<group name="Group1">
<groupExpression><![CDATA[$F{group}]]></groupExpression>
<groupHeader>
<band height="190">
<barChart>
<chart evaluationTime="Report">
<reportElement x="40" y="0" width="460" height="190" uuid="582be7ed-4b48-4d55-a2b6-1295290d34e3"/>
<chartTitle/>
<chartSubtitle/>
<chartLegend/>
</chart>
<categoryDataset>
<dataset resetType="Group" resetGroup="Group1"/>
<categorySeries>
<seriesExpression><![CDATA["SERIES 1"]]></seriesExpression>
<categoryExpression><![CDATA[$F{xrow}]]></categoryExpression>
<valueExpression><![CDATA[$F{yrow}]]></valueExpression>
</categorySeries>
</categoryDataset>
<barPlot>
<plot/>
<itemLabel/>
<categoryAxisFormat>
<axisFormat/>
</categoryAxisFormat>
<valueAxisFormat>
<axisFormat/>
</valueAxisFormat>
</barPlot>
</barChart>
</band>
</groupHeader>
</group>
<background>
<band splitType="Stretch"/>
</background>
<title>
<band height="79" splitType="Stretch"/>
</title>
<pageHeader>
<band height="35" splitType="Stretch"/>
</pageHeader>
</jasperReport>
I've created a report group for the column "group"
I'm putting the chart in the Group header band. and I've tried setting "reset on" to GROUP, as well as REPORT (in chart wizard) with no change in results. See below screen shot.
I'm at a loss of what to try next.
I took a closer look at the chart properties, and noticed there was a parameter called Evaluation Time, Changed it from "Report" to the name of the group. Alternatively change the following..
<chart evaluationTime="Report">
to
<chart evaluationTime="Group" evaluationGroup="group">
With the chart in the group header\footer, this will allow the chart to only show the current group data.

How do I livestream using an IP camera in Matlab?

How can I interface an IP camera in Matlab? I am using an IP55 from Compro technology.
We have tried the code involving the following:
url = '(IPaddressOfCamera)/snapshot.jpg';
ss = imread(url);
preview(ss);
In summary, I am trying to live stream using an IP camera with a Matlab interface. Any help would be greatly appreciated.
If I read it correctly, you would need mjpegStreamer.cgi
Here is the description:
<Manufacturer name="Compro">
<url version="IP350" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
<url version="IP50/70" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
<url version="IP530" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
<url version="IP540" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
<url version="IP55/60" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
<url version="IP570" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
<url version="NC150/420/500" confirmed="false" prefix="http://" Source="JPEG" url="snapshot.jpg" AudioModel="" port="" flags="" cookies=""/>
<url version="IP350" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
<url version="IP50/70" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
<url version="IP530" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
<url version="IP540" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
<url version="IP55/60" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
<url version="IP570" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
<url version="NC150/420/500" confirmed="false" prefix="http://" Source="MJPEG" url="mjpegStreamer.cgi" AudioModel="" port="" flags="" cookies=""/>
<url version="IP70" confirmed="false" prefix="rtsp://" Source="VLC" url="medias[CHANNEL]" AudioModel="" port="" flags="" cookies=""/>
</Manufacturer>