Ticket #200 (closed defect: fixed)

Opened 9 months ago

Last modified 3 months ago

Various .net -> .mat and .mat -> .net conversion problems

Reported by: mwlinnem@IU.EDU Assigned to: kelleyt@indiana.edu
Priority: low Milestone: 1.0
Component: Algorithm Version: 0.8.x
Severity: major Keywords:
Cc:

Description

Check the attached files. 1st is original .net file. 2nd is result of 1st -> .mat 3rd is result of 2nd -> .net again.

.net -> mat: 1) shape field, color field, and maybe other fields have quotes added, so ellipse -> "ellipse" and LightGreen? -> "Light Green" 2) Most edge attributes lost. Not sure if this can be helped, due to matrix format (edges get turned into matrix).

.mat -> .net: 1) Many node attributes lost (for instance, x_fact, some unknown numerical columns). 2) Color fields have end-quote but not start quote (for example, Blue")

Attachments

1.NET (5.2 kB) - added by mwlinnem@IU.EDU on 02/15/08 18:33:47.
1_as_mat.mat (5.3 kB) - added by mwlinnem@IU.EDU on 02/15/08 18:34:07.
1_as_mat_then_net.net (2.5 kB) - added by mwlinnem@IU.EDU on 02/15/08 18:34:24.

Change History

02/15/08 18:33:47 changed by mwlinnem@IU.EDU

  • attachment 1.NET added.

02/15/08 18:34:07 changed by mwlinnem@IU.EDU

  • attachment 1_as_mat.mat added.

02/15/08 18:34:24 changed by mwlinnem@IU.EDU

  • attachment 1_as_mat_then_net.net added.

02/15/08 18:39:07 changed by mwlinnem@IU.EDU

This error report is brought to you with the help of the handy dandy revised Converter Tester, and the letter Q.

08/13/08 12:44:35 changed by mwlinnem@IU.EDU

  • owner changed from nwb to kelleyt@indiana.edu.

08/14/08 15:57:18 changed by mwlinnem@IU.EDU

  • milestone changed from 0.9 to 1.0.

08/14/08 16:29:39 changed by mwlinnem@IU.EDU

  • priority changed from normal to low.

08/25/08 21:22:32 changed by kelleyt@IU.EDU

  • status changed from new to closed.
  • resolution set to fixed.

Fixed: Part 1:

Since Pajek can handle strings with or with out quotations as long as they are a single word, and NWB only handles strings with quotations, the addition of quotations does not change the actual attribute values. All edge attributes are lost aside from the weight because of the matrix format.

Part 2:

Error with checking the optional three position attributes was fixed as well as a small bug that was not printing the first quotation mark on known attributes with the string type.