Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[stem-dev] Antw: Re: stem-dev Digest, Vol 97, Issue 9

Hi all,

There are two kinds of Pajek formats, that can be imported into STEM. The old one, that was implemented by Armin and is
documented in PajekStem_Format.doc.
And then there is the new one, that I created and documented in the wiki. The new one does not support setting area
size, because we did not need it for the networks we created.

I think it would not be much work to make the new format support s_size, but currently I'm preparing a workshop for one
of our software tools and afterwards I'm on holidays.
So I would also suggest to add the area programmatically.

Best regards,
Chris



//// 15 Jahre BfR - Wissenschaft im Dienst des Menschen ////

>>> "James Kaufman" <jhkauf@xxxxxxxxxx> 23.05.2017 18:32 >>>
Hi Emily,
I gather from the question that you are doing a computation that depends 
on population density, or needs area in a related way.
Chris may have another answer but you should be able to use the s_size 
(additional parameter) in your pajek input file. The following doc 
(created by Chris) is part of the pajek downloadable example.
If you have 1000 different nodes with different area values you might look 
into creating your pajek file programmatically using R, python, or some 
other language you like. It's a simple delimited file. 
I agree you don't want to specify them individually :-) 

Chris,
Could we add a paragraph on area specification to the wiki section on 
Pajek ?

Best Regards,
Jamie







From:   stem-dev-request@xxxxxxxxxxx 
To:     stem-dev@xxxxxxxxxxx 
Date:   05/22/2017 02:59 AM
Subject:        stem-dev Digest, Vol 97, Issue 9
Sent by:        stem-dev-bounces@xxxxxxxxxxx 



Send stem-dev mailing list submissions to
                 stem-dev@xxxxxxxxxxx 

To subscribe or unsubscribe via the World Wide Web, visit
                 https://dev.eclipse.org/mailman/listinfo/stem-dev 
or, via email, send a message with subject or body 'help' to
                 stem-dev-request@xxxxxxxxxxx 

You can reach the person managing the list at
                 stem-dev-owner@xxxxxxxxxxx 

When replying, please edit your Subject line so it is more specific
than "Re: Contents of stem-dev digest..."


Today's Topics:

   1. Area labels and populated area in pajek graphs (Emily Nixon)
   2. Re: Area labels and populated area in pajek graphs (Ta G)
   3. Re: Area labels and populated area in pajek graphs (Emily Nixon)


----------------------------------------------------------------------

Message: 1
Date: Mon, 22 May 2017 10:26:41 +0100
From: Emily Nixon <emily.nixon@xxxxxxxxxxxxx>
To: STEM developer mailing list <stem-dev@xxxxxxxxxxx>
Subject: [stem-dev] Area labels and populated area in pajek graphs
Message-ID:
 <CAFsyUbwZ3iw-ERbvcAU537a-nji_-XTX-oU=2R=TkQGKg3R+0A@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi all,

I have successfully used the pajek file importer on a number of occasions,
but until now didn't need to specify the "Populated area" (part of the
Population label) on my graph. I can't work out how to specify this or how
to add area labels as well as population labels to my graph without having
to do it manually (and I have ~1000 nodes!).

There doesn't seem to be an option to specify this on the ODS spreadsheet
available https://wiki.eclipse.org/Importing_a_Pajek_Graph. I think in the
old format it used to be s_size, but adding this to a pajek graph in the
new format doesn't work.

Any ideas would be appreciated.

Thanks very much,

Emily
-- 
*Emily Nixon*
*PhD Student*
Demonstrator

School of Biological Sciences

University of Bristol
Bristol Life Sciences Building
24 Tyndall Avenue
Bristol
BS8 1TQ

Tel +44 (0)117 394 1389
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
https://dev.eclipse.org/mailman/private/stem-dev/attachments/20170522/e73b9876/attachment.html 
>

------------------------------

Message: 2
Date: Mon, 22 May 2017 11:42:21 +0200
From: Ta G <taras1802@xxxxxxxxxxxxxx>
To: "emily.nixon@xxxxxxxxxxxxx" <emily.nixon@xxxxxxxxxxxxx>, STEM
                 developer mailing list <stem-dev@xxxxxxxxxxx>
Subject: Re: [stem-dev] Area labels and populated area in pajek graphs
Message-ID: <5922b279.c7571c0a.e1857.3474@xxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi Emily,
it is possible to define labels in the XML file of your graph. 

You find this under the file-path:

C:\stem\workspace\YOUR_PROJECT\graphs

The file Looks like this:

test.graph

So I think this can help you. 
Please open the files with an texteditor like Notepad ++.
I used this  way to hack a modfier and add 6000 Parameter-values into the 
modifier file. 
I used KNIME for that and saved the file into the directory of  my 
Project.

So maybe you can use a similiar way. 

Best regards, 
Taras


Von: Emily Nixon
Gesendet: Montag, 22. Mai 2017 11:26
An: STEM developer mailing list
Betreff: [stem-dev] Area labels and populated area in pajek graphs

Hi all,

I have successfully used the pajek file importer on a number of occasions, 
but until now didn't need to specify the "Populated area" (part of the 
Population label) on my graph. I can't work out how to specify this or how 
to add area labels as well as population labels to my graph without having 
to do it manually (and I have ~1000 nodes!).

There doesn't seem to be an option to specify this on the ODS spreadsheet 
available https://wiki.eclipse.org/Importing_a_Pajek_Graph. I think in the 
old format it used to be s_size, but adding this to a pajek graph in the 
new format doesn't work. ?

Any ideas would be appreciated.

Thanks very much,

Emily?
-- 
Emily Nixon
PhD Student
Demonstrator?

School of Biological Sciences
University of Bristol
Bristol Life Sciences Building
24 Tyndall Avenue
Bristol
BS8 1TQ
Tel +44 (0)117 394 1389

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
https://dev.eclipse.org/mailman/private/stem-dev/attachments/20170522/d1f37a77/attachment.html 
>

------------------------------

Message: 3
Date: Mon, 22 May 2017 10:59:01 +0100
From: Emily Nixon <emily.nixon@xxxxxxxxxxxxx>
To: Ta G <taras1802@xxxxxxxxxxxxxx>
Cc: STEM developer mailing list <stem-dev@xxxxxxxxxxx>
Subject: Re: [stem-dev] Area labels and populated area in pajek graphs
Message-ID:
 <CAFsyUbwQtr5XNLVqu-rVF5dfPLe8tzsKS2d3TNG9rv95ubF2fw@xxxxxxxxxxxxxx>
Content-Type: text/plain; charset="utf-8"

Hi Taras,

Thanks, I've managed to open this and I can see that nothing is written
next to:

 </label>
</value>
</edges>

for each node (or maybe edge, I'm not sure which, see attached photo)

but I've never written in XML before so I'm not sure how to define an area
label using XML language, or how to do this quickly for each of the 1000
nodes! Is there a document or website that could help? Or some basic rules
you know I need to follow?

Best wishes,

Emily




On 22 May 2017 at 10:42, Ta G <taras1802@xxxxxxxxxxxxxx> wrote:

> Hi Emily,
>
> it is possible to define labels in the XML file of your graph.
>
>
>
> You find this under the file-path:
>
>
>
> C:\stem\workspace\YOUR_PROJECT\graphs
>
>
>
> The file Looks like this:
>
>
>
> test.graph
>
>
>
> So I think this can help you.
>
> Please open the files with an texteditor like Notepad ++.
>
> I used this  way to hack a modfier and add 6000 Parameter-values into 
the
> modifier file.
>
> I used KNIME for that and saved the file into the directory of  my 
Project.
>
>
>
> So maybe you can use a similiar way.
>
>
>
> Best regards,
>
> Taras
>
>
>
>
>
> *Von: *Emily Nixon <emily.nixon@xxxxxxxxxxxxx>
> *Gesendet: *Montag, 22. Mai 2017 11:26
> *An: *STEM developer mailing list <stem-dev@xxxxxxxxxxx>
> *Betreff: *[stem-dev] Area labels and populated area in pajek graphs
>
>
>
> Hi all,
>
>
>
> I have successfully used the pajek file importer on a number of 
occasions,
> but until now didn't need to specify the "Populated area" (part of the
> Population label) on my graph. I can't work out how to specify this or 
how
> to add area labels as well as population labels to my graph without 
having
> to do it manually (and I have ~1000 nodes!).
>
>
>
> There doesn't seem to be an option to specify this on the ODS 
spreadsheet
> available https://wiki.eclipse.org/Importing_a_Pajek_Graph. I think in
> the old format it used to be s_size, but adding this to a pajek graph in
> the new format doesn't work.
>
>
>
> Any ideas would be appreciated.
>
>
>
> Thanks very much,
>
>
>
> Emily
>
> --
>
> *Emily Nixon*
>
> *PhD Student*
>
> Demonstrator
>
>
>
> School of Biological Sciences
>
> University of Bristol
> Bristol Life Sciences Building
> 24 Tyndall Avenue
> Bristol
> BS8 1TQ
>
> Tel +44 (0)117 394 1389 <+44%20117%20394%201389>
>
>
>



-- 
*Emily Nixon*
*PhD Student*
Demonstrator

School of Biological Sciences

University of Bristol
Bristol Life Sciences Building
24 Tyndall Avenue
Bristol
BS8 1TQ

Tel +44 (0)117 394 1389
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
https://dev.eclipse.org/mailman/private/stem-dev/attachments/20170522/35fefc3b/attachment.html 
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: XML.JPG
Type: image/jpeg
Size: 63433 bytes
Desc: not available
URL: <
https://dev.eclipse.org/mailman/private/stem-dev/attachments/20170522/35fefc3b/attachment.jpe 
>

------------------------------

_______________________________________________
stem-dev mailing list
stem-dev@xxxxxxxxxxx 
To change your delivery options, retrieve your password, or unsubscribe 
from this list, visit
https://dev.eclipse.org/mailman/listinfo/stem-dev 

End of stem-dev Digest, Vol 97, Issue 9
***************************************








Back to the top