Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Christnowx
Gephi
提交
ab0d0e80
G
Gephi
项目概览
Christnowx
/
Gephi
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gephi
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ab0d0e80
编写于
11月 26, 2015
作者:
M
Mathieu Bastian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Minor IO fixes
上级
2c079944
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
11 deletion
+9
-11
modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGDF.java
...c/main/java/org/gephi/io/exporter/plugin/ExporterGDF.java
+2
-2
modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGraphML.java
...in/java/org/gephi/io/exporter/plugin/ExporterGraphML.java
+2
-4
modules/ImportPlugin/src/main/java/org/gephi/io/importer/plugin/file/ImporterGEXF.java
.../java/org/gephi/io/importer/plugin/file/ImporterGEXF.java
+5
-5
未找到文件。
modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGDF.java
浏览文件 @
ab0d0e80
...
...
@@ -320,7 +320,7 @@ public class ExporterGDF implements GraphExporter, CharacterExporter, LongTask {
List
<
Column
>
cols
=
new
ArrayList
<
Column
>();
if
(
exportAttributes
&&
graphModel
!=
null
)
{
for
(
Column
column
:
graphModel
.
getNodeTable
())
{
if
(!
isNodeDefaultColumn
(
column
.
getId
()))
{
if
(!
column
.
isProperty
()
&&
!
isNodeDefaultColumn
(
column
.
getId
()))
{
cols
.
add
(
column
);
}
}
...
...
@@ -332,7 +332,7 @@ public class ExporterGDF implements GraphExporter, CharacterExporter, LongTask {
List
<
Column
>
cols
=
new
ArrayList
<
Column
>();
if
(
exportAttributes
&&
graphModel
!=
null
)
{
for
(
Column
column
:
graphModel
.
getEdgeTable
())
{
if
(!
isEdgeDefaultColumn
(
column
.
getId
()))
{
if
(!
column
.
isProperty
()
&&
!
isEdgeDefaultColumn
(
column
.
getId
()))
{
cols
.
add
(
column
);
}
}
...
...
modules/ExportPlugin/src/main/java/org/gephi/io/exporter/plugin/ExporterGraphML.java
浏览文件 @
ab0d0e80
...
...
@@ -441,10 +441,8 @@ public class ExporterGraphML implements GraphExporter, CharacterExporter, LongTa
edgeE
.
setAttribute
(
"source"
,
e
.
getSource
().
getId
().
toString
());
edgeE
.
setAttribute
(
"target"
,
e
.
getTarget
().
getId
().
toString
());
if
(
e
.
getId
()
!=
null
&&
!
e
.
getId
().
toString
().
isEmpty
()
&&
!
String
.
valueOf
(
e
.
getId
()).
equals
(
e
.
getId
()))
{
Element
idE
=
createEdgeId
(
document
,
e
);
edgeE
.
appendChild
(
idE
);
}
Element
idE
=
createEdgeId
(
document
,
e
);
edgeE
.
appendChild
(
idE
);
//Label
if
(
e
.
getLabel
()
!=
null
&&
!
e
.
getLabel
().
isEmpty
())
{
...
...
modules/ImportPlugin/src/main/java/org/gephi/io/importer/plugin/file/ImporterGEXF.java
浏览文件 @
ab0d0e80
...
...
@@ -931,9 +931,9 @@ public class ImporterGEXF implements FileImporter, LongTask {
//Type
Class
attributeType
=
String
.
class
;
if
(
type
.
equalsIgnoreCase
(
"boolean"
)
||
type
.
equalsIgnoreCase
(
"bool"
))
{
attributeType
=
b
oolean
.
class
;
attributeType
=
B
oolean
.
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"integer"
)
||
type
.
equalsIgnoreCase
(
"int"
))
{
attributeType
=
int
.
class
;
attributeType
=
Integer
.
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"long"
))
{
attributeType
=
Long
.
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"float"
))
{
...
...
@@ -948,13 +948,13 @@ public class ImporterGEXF implements FileImporter, LongTask {
attributeType
=
BigInteger
.
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"byte"
))
{
attributeType
=
Byte
.
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"char"
))
{
}
else
if
(
type
.
equalsIgnoreCase
(
"char"
)
||
type
.
equalsIgnoreCase
(
"character"
)
)
{
attributeType
=
Character
.
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"short"
))
{
attributeType
=
Short
.
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"listboolean"
))
{
attributeType
=
boolean
[].
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"listint"
))
{
}
else
if
(
type
.
equalsIgnoreCase
(
"listint"
)
||
type
.
equalsIgnoreCase
(
"listinteger"
)
)
{
attributeType
=
int
[].
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"listlong"
))
{
attributeType
=
long
[].
class
;
...
...
@@ -970,7 +970,7 @@ public class ImporterGEXF implements FileImporter, LongTask {
attributeType
=
BigInteger
[].
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"listbyte"
))
{
attributeType
=
byte
[].
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"listchar"
))
{
}
else
if
(
type
.
equalsIgnoreCase
(
"listchar"
)
||
type
.
equalsIgnoreCase
(
"listcharacter"
)
)
{
attributeType
=
char
[].
class
;
}
else
if
(
type
.
equalsIgnoreCase
(
"listshort"
))
{
attributeType
=
short
[].
class
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录